Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testPathTooLong (3.14 sec)

  1. src/test/java/jcifs/util/PathValidatorTest.java

            assertThrows(SmbException.class, () -> {
                strictValidator.validatePath("\\share\\file\u0001.txt");
            });
        }
    
        @Test
        public void testPathTooLong() throws Exception {
            StringBuilder longPath = new StringBuilder("\\share");
            for (int i = 0; i < 100; i++) {
                longPath.append("\\verylongfoldername");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            validator.validatePath(null); // Null should be allowed
            validator.validatePath(""); // Empty should be allowed
        }
    
        @Test
        public void testPathTooLong() throws Exception {
            String longPath = "\\share" + "\\folder".repeat(5000);
            assertThrows(SmbException.class, () -> {
                validator.validatePath(longPath);
            });
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top