- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testGetSessionKey (0.4 sec)
-
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
target.close(); verify(fileHandle, atLeastOnce()).release(); } @Test @DisplayName("getSessionKey fetches via tree->session and returns bytes") void testGetSessionKey() throws CIFSException { when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); SmbSessionImpl session = mock(SmbSessionImpl.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
assertEquals("testServerDfs", handle.getServerWithDfs()); } @Test @DisplayName("Should return session key successfully") void testGetSessionKey() throws Exception { DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); byte[] expectedKey = "sessionKey".getBytes();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
verify(transport, times(1)).acquire(); assertTrue(session.isInUse()); } @Test @DisplayName("getSessionKey: throws when absent, returns when present") void testGetSessionKey() throws Exception { SmbSessionImpl session = newSession(); // Absent key -> CIFSException CIFSException noKey = assertThrows(CIFSException.class, session::getSessionKey);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0)