- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 2,385 for When (0.04 sec)
-
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
// When/Then: Should throw DcerpcException for invalid URLs assertThrows(DcerpcException.class, () -> DcerpcHandle.parseBinding(url)); } @Test @DisplayName("Should handle binding URLs without endpoints correctly") void testParseBindingWithoutEndpoint() { // When/Then: URLs without proper endpoints should failRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/https/HandlerTest.java
void testConstructorWithNullContext() { // When Handler testHandler = new Handler(null); // Then assertNotNull(testHandler); } @Test @DisplayName("Should extend jcifs.http.Handler") void testInheritance() { // Then assertTrue(handler instanceof jcifs.http.Handler);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.6K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
void isInUse_variants(boolean inUse) { when(session.isInUse()).thenReturn(inUse); boolean result = session.isInUse(); assertEquals(inUse, result); verify(session, times(1)).isInUse(); } // Happy path + edge: getSessionKey returns bytes, empty and null @Test @DisplayName("getSessionKey returns bytes, empty, then null") void getSessionKey_variants() throws CIFSException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
} @Test @DisplayName("Should create exception with error code and message") void testBasicCreation() { // When exception = new SmbOperationException(SmbOperationException.ErrorCode.FILE_NOT_FOUND, "test.txt"); // Then assertNotNull(exception); assertEquals(SmbOperationException.ErrorCode.FILE_NOT_FOUND, exception.getErrorCode());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(pipe.openUnshared(anyString(), anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fileHandle); when(fileHandle.acquire()).thenReturn(fileHandle); when(fileHandle.getTree()).thenReturn(tree);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type1MessageTest.java
lenient().when(mockContext.getConfig()).thenReturn(mockConfig); lenient().when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockLocalHost); lenient().when(mockLocalHost.getHostName()).thenReturn("localhost"); lenient().when(mockConfig.getDefaultDomain()).thenReturn("WORKGROUP");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/config/PropertyConfigurationTest.java
void testEmptyProperties() throws CIFSException { // Given Properties emptyProps = new Properties(); // When PropertyConfiguration emptyConfig = new PropertyConfiguration(emptyProps); // Then assertNotNull(emptyConfig); // Hostname may be null when not provided in properties // This is expected behavior } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
void testInterfaceMock() { // Given when(mockBasicFileInfo.getAttributes()).thenReturn(TEST_ATTRIBUTES); when(mockBasicFileInfo.getCreateTime()).thenReturn(TEST_CREATE_TIME); when(mockBasicFileInfo.getLastWriteTime()).thenReturn(TEST_LAST_WRITE_TIME); when(mockBasicFileInfo.getLastAccessTime()).thenReturn(TEST_LAST_ACCESS_TIME); when(mockBasicFileInfo.getSize()).thenReturn(1024L);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
when(mockFile.getAttributes()).thenReturn(SmbFile.ATTR_READONLY | SmbFile.ATTR_HIDDEN | SmbFile.ATTR_SYSTEM); // When calling accept // Then it should be accepted because the READONLY attribute is present assertTrue(dosFileFilter.accept(mockFile)); } /** * Tests that the accept method returns false when the file attributes do not
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0)