Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testGetSessionKey (1.22 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top