- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for twice (0.06 sec)
-
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
// Act: call twice try (SmbTreeHandleImpl t1 = target.ensureTreeConnected(); SmbTreeHandleImpl t2 = target.ensureTreeConnected()) { assertSame(tree, t1); assertSame(tree, t2); } // Assert: pipe.ensureTreeConnected invoked once, acquire twice verify(pipe, times(1)).ensureTreeConnected();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
assertTrue(ex.getMessage().contains("Server does not support NTLM authentication")); // Verify the decision consulted the configuration // getConfig() is called twice: once in Kerb5Authenticator and once in NtlmPasswordAuthenticator verify(tc, times(2)).getConfig(); verify(config, times(1)).isAllowNTLMFallback(); verify(config, times(1)).isUseRawNTLM(); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
shareInfo1.encode(mockNdrBuffer); // Verify the encode operations verify(mockNdrBuffer).align(4); verify(mockNdrBuffer, times(2)).enc_ndr_referent(null, 1); // Called twice for netname and remark verify(mockNdrBuffer).enc_ndr_long(0); // Should not encode strings if fields are null verify(mockDeferredBuffer, never()).enc_ndr_string(anyString()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
assertFalse(it.hasNext()); // Verify interactions verify(tree, times(1)).send(isA(Trans2FindFirst2.class), any(Trans2FindFirst2Response.class)); // Verify that Trans2FindNext2 was sent twice for fetching more entries verify(tree, times(2)).send(isA(Trans2FindNext2.class), any(Trans2FindFirst2Response.class)); // Close should have sent FindClose2 exactly once
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
} @Test public void testDifferentEncryptionsProduceDifferentCiphertexts() throws Exception { char[] plaintext = "SamePassword".toCharArray(); // Encrypt twice byte[] encrypted1 = storage.encryptCredentials(plaintext.clone()); byte[] encrypted2 = storage.encryptCredentials(plaintext.clone()); // Should produce different ciphertexts due to random IVRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryTest.java
// Act: call methods, some multiple times String name = mockEntry.getName(); int type1 = mockEntry.getType(); int type2 = mockEntry.getType(); // called twice for interaction verification int attributes = mockEntry.getAttributes(); long createTime = mockEntry.createTime(); long lastModified = mockEntry.lastModified();Registered: 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/internal/smb2/Smb3KeyDerivationTest.java
@DisplayName("Should produce consistent keys for same input") void testDeriveKeys_Consistency() { // Given int dialect = Smb2Constants.SMB2_DIALECT_0311; // When - derive same key twice byte[] signingKey1 = Smb3KeyDerivation.deriveSigningKey(dialect, sessionKey, preauthIntegrity); byte[] signingKey2 = Smb3KeyDerivation.deriveSigningKey(dialect, sessionKey, preauthIntegrity);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
* need to be on the same host. This operation does not copy extended * file attributes such as ACLs but it does copy regular attributes as * well as create and last write times. This method is almost twice as * efficient as manually copying as it employs an additional write * thread to read and write data concurrently. * <br> * It is not possible (nor meaningful) to copy entire workgroups orRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1)