- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 95 for stubs (0.02 seconds)
-
futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java
* SettableFuture} or one of the methods in the {@link Futures#immediateFuture Futures.immediate*} * family. <b>Avoid</b> creating a mock or stub {@code Future}. Mock and stub implementations are * fragile because they assume that only certain methods will be called and because they often * implement subtleties of the API improperly. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 8K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/ListenableFuture.java
* SettableFuture} or one of the methods in the {@link Futures#immediateFuture Futures.immediate*} * family. <b>Avoid</b> creating a mock or stub {@code Future}. Mock and stub implementations are * fragile because they assume that only certain methods will be called and because they often * implement subtleties of the API improperly. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 8K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ConcurrencyDependencyGraphTest.java
import java.util.List; import java.util.Set; import org.apache.maven.execution.ProjectDependencyGraph; import org.apache.maven.lifecycle.internal.ProjectBuildList; import org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub; import org.apache.maven.project.MavenProject; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class ConcurrencyDependencyGraphTest {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
* Tests a filter that uses directory path information. */ @Test @DisplayName("filter can use SmbFile directory for decision logic") void filterCanUseSmbFileForDecision() throws Exception { // Stub the getPath method to return a specific value when(mockDir.getPath()).thenReturn("/share/folder/"); // Implementation uses dir.getPath() to check if file should be in that pathCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
import org.mockito.junit.jupiter.MockitoExtension; import jcifs.smb1.UniAddress; /** * Very small test suite that exercises the most important state-changing * behaviour of {@link SmbSession}. The tests use Mockito to stub the * heavy network interactions through {@link SmbTransport}. */ @ExtendWith(MockitoExtension.class) public class SmbSessionTest { @Mock UniAddress addr; @Mock InetAddress inet;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
src/cmd/asm/internal/asm/testdata/arm64enc.s
SUBSW R2.SXTH<<3, R13, R6 // a6ad226b SUBS R21.UXTX<<2, R27, R4 // 646b35eb SUBSW $(44<<12), R6, R9 // SUBSW $180224, R6, R9 // c9b04071 SUBS $(1804<<12), R13, R9 // SUBS $7389184, R13, R9 // a9315cf1 SUBSW R22->28, R6, R7 // c770966b SUBSW R22>>28, R6, R7 // c770566b SUBS R26<<15, R6, R16 // d03c1aeb
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Jul 24 01:11:41 GMT 2023 - 43.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
SSPContext ctx = creds.createContext(mockContext, "TARGET", "host", new byte[0], true); // Assert assertNotNull(ctx, "createContext returns an SSPContext"); assertFalse(ctx.isEstablished(), "stub context initially not established"); // Verify interactions with dependency are meaningful and ordered InOrder order = inOrder(mockContext); order.verify(mockContext, times(1)).getConfig();
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
); } // --- Mockito interaction: verify each getter is invoked and returns stubbed values --- @Test void mockitoMock_verifiesGetterInteractions() { // Arrange: mock and stub each getter with distinct values SmbBasicFileInfo mock = Mockito.mock(SmbBasicFileInfo.class); Mockito.when(mock.getAttributes()).thenReturn(7); Mockito.when(mock.getCreateTime()).thenReturn(11L);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnector.java
} @Override public void put( Collection<? extends ArtifactUpload> artifactUploads, Collection<? extends MetadataUpload> metadataUploads) { // TODO Auto-generated method stub }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 11 17:20:46 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
@EnumSource(RequestParam.class) @DisplayName("send handles each RequestParam enum constant") void send_eachRequestParam_isAccepted(RequestParam param) throws Exception { // Arrange: stub per-call return to ensure interaction with the exact enum when(tree.send(eq(request), eq(param))).thenReturn(response); // Act CommonServerMessageBlockResponse out = tree.send(request, param);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0)