- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 689 for WHEN (0.02 sec)
-
src/test/java/jcifs/internal/NotifyResponseTest.java
// Setup mock notify information when(mockNotifyInfo1.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED); when(mockNotifyInfo1.getFileName()).thenReturn("test1.txt"); when(mockNotifyInfo2.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_MODIFIED); when(mockNotifyInfo2.getFileName()).thenReturn("test2.txt"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
// Given when(mockResource.children()).thenReturn(mockIterator); when(mockResource.children("*.txt")).thenReturn(mockIterator); when(mockResource.children(mockNameFilter)).thenReturn(mockIterator); when(mockResource.children(mockResourceFilter)).thenReturn(mockIterator); // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
} } @BeforeEach void setUp() throws Exception { parent = mock(SmbFile.class); when(parent.getLocator()).thenReturn(locator); when(treeHandle.getConfig()).thenReturn(config); when(treeHandle.acquire()).thenReturn(treeHandle); when(treeHandle.getOEMDomainName()).thenReturn("TESTDOMAIN"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
when(mockConfig.getNetbiosLocalAddress()).thenReturn(InetAddress.getByName("127.0.0.1")); when(mockConfig.getBroadcastAddress()).thenReturn(InetAddress.getByName("255.255.255.255")); when(mockConfig.getNetbiosSndBufSize()).thenReturn(576); when(mockConfig.getNetbiosRcvBufSize()).thenReturn(576);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
lenient().when(mockSmbNamedPipe.openPipe()).thenReturn(mockSmbPipeHandle); lenient().when(mockSmbPipeHandle.unwrap(SmbPipeHandleInternal.class)).thenReturn(mockSmbPipeHandleInternal); lenient().when(mockSmbNamedPipe.getContext()).thenReturn(mockContext); lenient().when(mockSmbNamedPipe.getLocator()).thenReturn(mockSmbResourceLocator);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
// Setup mock files when(mockFile1.getName()).thenReturn("file1.txt"); when(mockFile1.length()).thenReturn(1024L); when(mockFile1.lastModified()).thenReturn(1000L); when(mockFile1.isDirectory()).thenReturn(false); when(mockFile1.getAttributes()).thenReturn(0x20); when(mockFile1.createTime()).thenReturn(500L); when(mockFile1.lastAccess()).thenReturn(800L);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/DfsResolverTest.java
when(mockConfig.isDfsDisabled()).thenReturn(false); when(mockContext.getTransportPool()).thenReturn(mockTransportPool); when(mockTransportPool.getSmbTransport(any(), anyString(), anyInt(), anyBoolean(), anyBoolean())).thenReturn(mockTransport); when(mockTransport.unwrap(any())).thenReturn(mockTransport);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
void testGetCipherId() { // When int cipherId = encryptionContext.getCipherId(); // Then assertEquals(1, cipherId, "Should return the cipher ID set in constructor"); } @Test @DisplayName("Should return correct dialect version") void testGetDialect() { // When DialectVersion dialect = encryptionContext.getDialect();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); when(mockContext.getConfig()).thenReturn(mockConfig); } @Test void testGetByNameWithNullLmHostsFile() { // Test when lmhosts file is not configured when(mockConfig.getLmHostsFileName()).thenReturn(null); NbtAddress result = lmhosts.getByName("TEST_HOST", mockContext);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
doReturn(mockTreeHandle).when(dest).ensureTreeConnected(); doReturn(true).when(smbFile).exists(); doReturn(false).when(dest).exists(); when(mockTreeHandle.isSMB2()).thenReturn(false); when(mockTreeHandle.isSameTree(mockTreeHandle)).thenReturn(true);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0)