- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testSalt (0.25 sec)
-
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
// Mock random for predictable salt generation doAnswer(invocation -> { byte[] buffer = invocation.getArgument(0); System.arraycopy(testSalt, 0, buffer, 0, Math.min(buffer.length, testSalt.length)); return null; }).when(mockRandom).nextBytes(any(byte[].class)); } @Test @DisplayName("Should create request with default settings")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
class PreauthIntegrityNegotiateContextTest { private PreauthIntegrityNegotiateContext context; private byte[] testSalt; private int[] testHashAlgos; @BeforeEach void setUp() { testSalt = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }; testHashAlgos = new int[] { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 }; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
assertEquals("Watch operation failed", thrown.getMessage()); verify(watchHandle, times(1)).watch(); } /** * Test call() method delegates to watch() */ @Test void testCall() throws CIFSException { // Setup mock behavior when(watchHandle.call()).thenReturn(mockNotifications); // Execute List<FileNotifyInformation> result = watchHandle.call();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0)