Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for hasCapability_notConnected_throws (0.11 sec)

  1. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            setTree(c2, other);
            assertFalse(c1.isSame(c2));
        }
    
        @Test
        @DisplayName("hasCapability throws when not connected")
        void hasCapability_notConnected_throws() {
            SmbTreeConnection c = newConn();
            SmbException ex = assertThrows(SmbException.class, () -> c.hasCapability(1));
            assertTrue(ex.getMessage().contains("Not connected"));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top