Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testUnwrap_throwsException (0.28 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/SmbTreeTest.java

        }
    
        /**
         * Test for unwrap() method throwing exception.
         * Verifies that unwrap can throw exceptions when appropriate.
         */
        @Test
        void testUnwrap_throwsException() {
            when(smbTree.unwrap(any())).thenThrow(new ClassCastException("Cannot unwrap to specified type"));
    
            assertThrows(ClassCastException.class, () -> smbTree.unwrap(CustomSmbTree.class),
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.2K bytes
    - Click Count (0)
Back to Top