Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testNullStreamHandling (0.08 sec)

  1. src/test/java/jcifs/smb1/util/LogStreamTest.java

            assertNotSame(instance1, instance2);
            // Getting instance again should return the same as instance2
            assertSame(instance2, LogStream.getInstance());
        }
    
        @Test
        void testNullStreamHandling() {
            // Test that passing null to setInstance throws NullPointerException
            // This is expected behavior as PrintStream doesn't accept null
            assertThrows(NullPointerException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
Back to top