- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 2,907 for 2test (0.4 sec)
-
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
assertEquals("\\test\\file.txt", request.getPath()); // Test path with leading backslash (should be stripped) request.setPath("\\test\\file.txt"); assertEquals("\\test\\file.txt", request.getPath()); // Test path with trailing backslash (should be stripped) request.setPath("test\\directory\\"); assertEquals("\\test\\directory", request.getPath());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
@Test @DisplayName("Test isDFSSupported returns false") void testIsDFSSupportedFalse() { // Arrange when(negotiationResponse.isDFSSupported()).thenReturn(false); // Act boolean result = negotiationResponse.isDFSSupported(); // Assert assertFalse(result); verify(negotiationResponse).isDFSSupported(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
}); } @Test public void testStringWithControlChars() throws Exception { assertThrows(SmbException.class, () -> { validator.validateString("test\u0001string", 100, "test"); }); } @Test public void testStringWithAllowedWhitespace() throws Exception { validator.validateString("test\tstring", 100, "test");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
testBlock.setUseUnicode(true); assertEquals(10, testBlock.stringWireLength("Test", 0)); assertEquals(11, testBlock.stringWireLength("Test", 1)); } @Test @DisplayName("Test read string length") void testReadStringLength() { byte[] buffer = "Test\0Other".getBytes();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; /** * Test class for SecurityInfo interface constants */ class SecurityInfoTest { @Test @DisplayName("Test OWNER_SECURITY_INFO constant value") void testOwnerSecurityInfo() { assertEquals(0x1, SecurityInfo.OWNER_SECURITY_INFO); } @Test @DisplayName("Test GROUP_SECURITY_INFO constant value")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
// Test with concrete implementation - requires server to be set assertDoesNotThrow(() -> concreteImplementation.fixupHost(fqdn)); } @Test @DisplayName("Should fixup domain") void testFixupDomain() { String domain = "example.com"; // Test with mock doNothing().when(mockReferralData).fixupDomain(domain);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
import java.util.concurrent.TimeUnit; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; /** * Test secure password handling in NtlmPasswordAuthenticator */ public class NtlmPasswordAuthenticatorTest { /** * Test password storage using char arrays */ @Test public void testPasswordAsCharArray() { String testPassword = "TestPassword123!";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java
assertTrue(urlFilter.match("https://example.com/search?q=test")); assertTrue(urlFilter.match("https://example.com/search?q=test&page=2")); assertFalse(urlFilter.match("https://example.com/search?debug=true")); assertFalse(urlFilter.match("https://example.com/search?q=test&debug=true")); } /** * Test processUrl method with various URL patterns */
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 19K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
} @Test @DisplayName("Test toString method") void testToString() { // Test the toString method String result = response.toString(); assertNotNull(result); assertTrue(result.contains("Trans2SetFileInformationResponse")); assertTrue(result.contains("[")); assertTrue(result.contains("]")); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
fileInfo = new FileEndOfFileInformation(); } @Test @DisplayName("Test default constructor creates valid instance") void testDefaultConstructor() { // Verify instance is created assertNotNull(fileInfo); assertEquals(FileInformation.FILE_ENDOFFILE_INFO, fileInfo.getFileInformationLevel()); } @Test @DisplayName("Test parameterized constructor with end of file value")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0)