- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 239 for thenReturn (0.09 sec)
-
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
lenient().when(tree.acquire()).thenReturn(tree); lenient().when(tree.getConfig()).thenReturn(config); lenient().when(config.getListCount()).thenReturn(10); lenient().when(config.getListSize()).thenReturn(4096); lenient().when(parent.getLocator()).thenReturn(locator); lenient().when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir\\"); // ends with \\
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
when(mockResponse.getGrantedCredits()).thenReturn(100); assertEquals(100, mockResponse.getGrantedCredits()); // Verify the method was called verify(mockResponse, times(1)).getGrantedCredits(); } @Test void testGetErrorCode() { // Simulate error code when(mockResponse.getErrorCode()).thenReturn(-1); assertEquals(-1, mockResponse.getErrorCode());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
// Test different cases when(mockNetbiosName.getName()).thenReturn(upperCase); assertEquals(upperCase, mockNetbiosName.getName()); when(mockNetbiosName.getName()).thenReturn(lowerCase); assertEquals(lowerCase, mockNetbiosName.getName()); when(mockNetbiosName.getName()).thenReturn(mixedCase); assertEquals(mixedCase, mockNetbiosName.getName()); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getLeaseTimeout()).thenReturn(30000); when(mockConfig.getMaxLeases()).thenReturn(1000); when(mockConfig.getLeaseBreakTimeout()).thenReturn(60); leaseManager = new LeaseManager(mockContext); } @AfterEach void tearDown() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
// Given: NdrShort and mock returning specific value int decodedValue = 200; NdrShort ndrShort = new NdrShort(0); when(mockBuffer.dec_ndr_short()).thenReturn(decodedValue); // When: Decoding the value ndrShort.decode(mockBuffer); // Then: Should call dec_ndr_short and set value correctlyRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0)