- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 88 for carlin (0.5 sec)
-
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
void testConstructor() { // Verify that the constructor correctly sets the delegate (inherited from CIFSContextWrapper) // and the credentials. The delegate is tested implicitly by calling super's methods. // We can directly test getCredentials() to ensure it returns the initial credentials. assertEquals(mockCredentials, wrapper.getCredentials(), "Initial credentials should be set by constructor");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
auth.secureWipePassword(); // Password should be null after wipe assertNull(auth.getPassword()); assertNull(auth.getPasswordAsCharArray()); // Calling wipe again should be safe auth.secureWipePassword(); assertNull(auth.getPassword()); } /** * Test that closed authenticator prevents all sensitive operations */ @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryTest.java
// Act long actual = getter.apply(e); // Assert assertEquals(value, actual, label); } @Test @DisplayName("Calling a method on null reference throws NPE") void nullReference_throwsNPE() { // Arrange FileEntry e = null; // Act & Assert: demonstrate invalid usage results in NPERegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K bytes - Viewed (0) -
src/test/java/jcifs/smb/HandlerTest.java
@Test @DisplayName("parseURL with null spec throws NullPointerException") void testParseURL_NullSpec() throws MalformedURLException { // Arrange: create a URL object to mutate via parseURL (same package allows calling protected method) Handler handler = newHandler(); URL url = new URL(null, "smb://server/share", handler); // Act & AssertRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/config/PropertyConfiguration.java
// Invalid value ignored } } } @Override protected void initDefaults() throws CIFSException { // Set PropertyConfiguration-specific defaults before calling super.initDefaults() if (!this.useMultiChannelExplicitlySet) { this.useMultiChannel = true; // PropertyConfiguration defaults to enabled }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java
*/ static final int FILE_OVERWRITE = 0x4; /* * Open the file and overwrite it's contents or create it if it does not exist * aka CREATE_ALWAYS (according to the wire when calling CreateFile) */ static final int FILE_OVERWRITE_IF = 0x5; // create options static final int FILE_WRITE_THROUGH = 0x00000002; static final int FILE_SEQUENTIAL_ONLY = 0x00000004;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
// Arrange CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx); // Act & Assert: calling release without prior acquire drops usage below zero RuntimeException ex = assertThrows(RuntimeException.class, trace::release);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
assertTrue(it.hasNext(), "Iterator should have third element after fetchMore"); assertSame(fe3, it.next(), "Third element from second page"); // After last element, hasNext should be false and calling close() should send Smb2CloseRequest once assertFalse(it.hasNext(), "Iterator should be exhausted"); // Close explicitly to exercise doCloseInternal it.close();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
stubValidTree(2L, true, true); SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, 1, tree, "//host/share", 0, 0, 0, 0, 0L); // Calling finalize directly to execute the logic; should not throw h.finalize(); } @Test @DisplayName("toString() contains UNC and id representation") void toString_containsExpected() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmSspTest.java
// Execute NtlmPasswordAuthentication result = ntlmSsp.doAuthentication(mockCifsContext, mockRequest, mockResponse, challenge); // Verify that the behavior is the same as calling the static method directly assertNull(result, "Authentication result should be null"); verify(mockResponse).setHeader("WWW-Authenticate", "NTLM");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.4K bytes - Viewed (1)