Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testNullPath (0.09 sec)

  1. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            assertTrue(writtenPath.contains("abc"), "Path should be written to buffer");
        }
    
        @Test
        @DisplayName("writeParametersWireFormat throws on null path")
        void testNullPath() {
            Trans2GetDfsReferral cmd = new Trans2GetDfsReferral(null);
            byte[] buffer = new byte[10];
            assertThrows(NullPointerException.class, () -> cmd.writeParametersWireFormat(buffer, 0));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/PathValidatorTest.java

        @Test
        public void testEmptyPath() throws Exception {
            assertThrows(SmbException.class, () -> {
                validator.validatePath("");
            });
        }
    
        @Test
        public void testNullPath() throws Exception {
            assertThrows(SmbException.class, () -> {
                validator.validatePath(null);
            });
        }
    
        @Test
        public void testSpecialShareNames() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Then
            assertEquals(0, SMBUtil.readInt2(buffer, Smb2Constants.SMB2_HEADER_LENGTH + 6)); // Path length should be 0
        }
    
        @Test
        @DisplayName("Should handle null path")
        void testNullPath() {
            // When creating with null path
            Smb2TreeConnectRequest reqWithNull = new Smb2TreeConnectRequest(mockConfig, null);
    
            // Then - should not throw during construction
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top