- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 270 for thenReturn (0.99 sec)
-
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
when(tree.isConnected()).thenReturn(true); when(tree.getSession()).thenReturn(session); when(tree.acquire(false)).thenReturn(tree); when(session.getTransport()).thenReturn(transport); when(transport.isDisconnected()).thenReturn(false); when(transport.getRemoteHostName()).thenReturn("host"); setTree(c, tree);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java
when(mockChannelManager.getHealthyChannels()).thenReturn(Collections.singletonList(channel1)); ChannelInfo selected = loadBalancer.selectChannel(mockMessage); assertEquals(channel1, selected); } @Test void testNoChannelsAvailable() { when(mockChannelManager.getHealthyChannels()).thenReturn(Collections.emptyList());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
// next map.get() when(backingMap.get(KEY)).thenReturn(existingZero); // since get returned zero, try a replace; that fails due to a simulated race when(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class))).thenReturn(false); when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existing); // another map.get()Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/SmbTransportPoolTest.java
when(transportPool.getSmbTransport(context, address, DEFAULT_PORT, false)).thenReturn(sharedTransport); when(transportPool.getSmbTransport(context, address, DEFAULT_PORT, true)).thenReturn(exclusiveTransport); when(transportPool.getSmbTransport(context, address, DEFAULT_PORT, false, true)).thenReturn(signedTransport); // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
void setUp() { lenient().when(mockFileEntry1.getName()).thenReturn("file1.txt"); lenient().when(mockFileEntry2.getName()).thenReturn("file2.txt"); lenient().when(mockFileEntry3.getName()).thenReturn("file3.txt"); lenient().when(mockResource1.getName()).thenReturn("file1.txt"); lenient().when(mockResource2.getName()).thenReturn("file2.txt");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
when(mockConnection.getRequestMethod()).thenReturn("GET"); when(mockConnection.getAllowUserInteraction()).thenReturn(true); when(mockConnection.getDoInput()).thenReturn(true); when(mockConnection.getDoOutput()).thenReturn(true); when(mockConnection.getIfModifiedSince()).thenReturn(12345L); when(mockConnection.getUseCaches()).thenReturn(false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
when(mockContext.getConfig()).thenReturn(mockConfig); when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost); when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME); when(mockConfig.getDefaultDomain()).thenReturn(TEST_DOMAIN); when(mockConfig.isUseUnicode()).thenReturn(true); return mockContext; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java
final ResponseProcessor responseProcessor = mock(ResponseProcessor.class); when(ruleManager.getRule(responseData)).thenReturn(rule); when(rule.getRuleId()).thenReturn("test-rule"); when(rule.getResponseProcessor()).thenReturn(responseProcessor); // Use reflection to access protected method final java.lang.reflect.Method method =
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 18.3K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
void testGet() throws CIFSException { // Given String url = "smb://server/share/file"; SmbResource mockResource = mock(SmbResource.class); when(mockContext.get(url)).thenReturn(mockResource); // When SmbResource resource = mockContext.get(url); // Then assertEquals(mockResource, resource); verify(mockContext).get(url); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
@Test @DisplayName("isSigningOptional and isSigningEnforced reflect configuration") void signingModes() throws Exception { when(transport.isSigningOptional()).thenReturn(true); when(transport.isSigningEnforced()).thenReturn(false); assertTrue(transport.isSigningOptional()); assertFalse(transport.isSigningEnforced()); verify(transport).isSigningOptional();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0)