- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 722 for WHEN (2.58 sec)
-
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
// Arrange 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/smb1/smb1/Trans2QueryPathInformationTest.java
*/ @Test void testConstructor() { // Given String filename = "testFile.txt"; int informationLevel = 0x0100; // SMB_QUERY_FILE_BASIC_INFO // When Trans2QueryPathInformation trans = new Trans2QueryPathInformation(filename, informationLevel); // Then assertEquals(filename, trans.path, "The path should be set correctly.");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/SidResolverTest.java
doThrow(new CIFSException("Context cannot be null")).when(sidResolver).resolveSids(eq(null), anyString(), any(SID[].class)); assertThrows(CIFSException.class, () -> sidResolver.resolveSids(null, testServerName, testSids)); } @Test void testResolveSids_WithNullServerName() throws CIFSException { doThrow(new CIFSException("Server name cannot be null")).when(sidResolver)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
DfsReferralData mockData = mock(DfsReferralData.class); when(mockData.getServer()).thenReturn("SERVER"); when(mockData.getShare()).thenReturn("share"); when(mockData.getPath()).thenReturn("path"); when(mockData.getExpiration()).thenReturn(System.currentTimeMillis() + 60000); when(mockData.getPathConsumed()).thenReturn(0); when(mockData.getDomain()).thenReturn("DOMAIN");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
smbFile.tree = smbTree; smbFile.fid = 1; smbFile.tree_num = 1; when(smbFile.isFile()).thenReturn(true); when(smbFile.getUncPath()).thenReturn("\\\\server\\share\\file.txt"); when(smbFile.isOpen()).thenReturn(true); // Mock the open method to do nothing doNothing().when(smbFile).open(anyInt(), anyInt(), anyInt(), anyInt());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
when(resp.getSessionId()).thenReturn(42L); session.setSessionSetup(resp); when(transport.isDisconnected()).thenReturn(false); when(transport.isFailed()).thenReturn(false); assertTrue(session.isConnected()); assertFalse(session.isFailed()); when(transport.isDisconnected()).thenReturn(true); when(transport.isFailed()).thenReturn(true);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java
final Rule rule = mock(Rule.class); 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/internal/smb2/tree/Smb2TreeConnectResponseTest.java
} @Test @DisplayName("Should return null for getService") void testGetService() { // When String service = response.getService(); // Then assertNull(service); } @Test @DisplayName("Should prepare next request correctly when received") void testPrepareWhenReceived() throws Exception { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/util/HexdumpTest.java
// When String result = Hexdump.toHexString(data); // Then assertNotNull(result); assertEquals("000FFF7F80", result); } @Test @DisplayName("Should handle empty byte array") void testToHexStringEmpty() { // Given byte[] data = {}; // When String result = Hexdump.toHexString(data);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0)