- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for authReq (0.03 sec)
-
src/test/java/jcifs/smb/SmbCopyUtilTest.java
// Arrange SmbFile dest = mock(SmbFile.class); SmbFileHandleImpl handle = mock(SmbFileHandleImpl.class); SmbAuthException authEx = new SmbAuthException("denied"); when(dest.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenThrow(authEx) // first attempt fails with auth .thenReturn(handle); // second attempt succeeds // dest currently has READONLY attribute setRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
public void testAutoCloseableImpl() { String testPassword = "AutoCloseablePass123!"; NtlmPasswordAuthenticator authRef; // Use try-with-resources try (NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("user", testPassword)) { authRef = auth; assertEquals(testPassword, auth.getPassword()); assertFalse(auth.isClosed()); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.3K bytes - Viewed (0)