Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for nullTree (0.75 sec)

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

        void nullTreeHandle() {
            // Arrange
            SmbTreeHandleImpl nullTree = null;
    
            // Act + Assert
            assertThrows(NullPointerException.class,
                    () -> TestIterator.create(nullTree, parent, "*", null, 0, entry("a"), List.of(new FileEntry[][] { new FileEntry[] {} })));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            void nullHandle() {
                assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(null, tree));
            }
    
            @Test
            @DisplayName("null tree throws NPE")
            void nullTree() {
                assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(handle, null));
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

         */
        @Test
        @DisplayName("calling getters on null reference throws NPE")
        void testNullReference() {
            AllocInfo nullRef = null;
            assertThrows(NullPointerException.class, () -> nullRef.getCapacity());
            assertThrows(NullPointerException.class, () -> nullRef.getFree());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top