Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Backslash (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            request.setPath("test\\file.txt");
            assertEquals("\\test\\file.txt", request.getPath());
    
            // Test path with leading backslash (should be stripped)
            request.setPath("\\test\\file.txt");
            assertEquals("\\test\\file.txt", request.getPath());
    
            // Test path with trailing backslash (should be stripped)
            request.setPath("test\\directory\\");
            assertEquals("\\test\\directory", request.getPath());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            assertEquals("\\test\\path\\", trans2FindFirst2.getPath());
        }
    
        @Test
        @DisplayName("Test constructor with path ending in backslash")
        void testConstructorWithPathEndingInBackslash() {
            // Test path already ending with backslash
            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test\\path\\", "*.doc", 0x16, 20, 2048);
    
            assertEquals("\\test\\path\\", trans2FindFirst2.getPath());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            verify(tree, times(1)).acquire();
            verify(tree, times(1)).release(); // closed after failure
        }
    
        @Test
        @DisplayName("open(): invalid UNC without trailing backslash throws SmbException")
        void invalidUncThrows() throws Exception {
            // Override the default setup for this specific test
            when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir"); // missing trailing \\
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        @Test
        @DisplayName("handleDFSReferral returns resolved UNC path as stubbed")
        void handleDfsReferralValidInputs() {
            // Edge-like Windows UNC-style: a single backslash in the path
            String reqPath = "\\";
            String resolved = "smb://server/share/path";
            when(locator.handleDFSReferral(referral, reqPath)).thenReturn(resolved);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            super.tearDown();
        }
    
        private String getTestContent() {
            return "# This is a comment\n" + "test1\n" + "test2\n" + "test3\n" + "\n" + // empty line
                    "test\\\\4\n" + // escaped backslash
                    "test5\n";
        }
    
        public void test_getType() {
            assertEquals("protwords", protwordsFile.getType());
        }
    
        public void test_getPath() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbTree.java

                if (inDfs && !service.equals("IPC") && request.path != null && request.path.length() > 0) {
                    /* When DFS is in action all request paths are
                     * full UNC paths minus the first backslash like
                     *   \server\share\path\to\file
                     * as opposed to normally
                     *   \path\to\file
                     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java

            monitorTarget.append(buf, "specialKey", supplier);
            assertEquals("\"specialKey\":\"test \\\"quotes\\\" and \\n newline\"", buf.toString());
        }
    
        // Test append method with String containing backslash
        public void test_append_stringWithBackslash() {
            StringBuilder buf = new StringBuilder();
            Supplier<Object> supplier = () -> "path\\to\\file";
    
            monitorTarget.append(buf, "pathKey", supplier);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeImpl.java

                    /*
                     * When DFS is in action all request paths are
                     * full UNC paths minus the first backslash like
                     * \server\share\path\to\file
                     * as opposed to normally
                     * \path\to\file
                     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/PathValidatorTest.java

            assertEquals("\\server\\share", normalizedPath);
    
            // To properly test UNC rejection, we would need to fix the normalization logic
            // to preserve the leading double backslash for UNC paths
        }
    
        @Test
        public void testInvalidUncPath() throws Exception {
            // Due to normalization removing duplicate backslashes, true UNC validation doesn't work
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

        }
    
        public void test_unescape_withBackslash() {
            String content = "word\\n1\n" + // word + n + 1
                    "word\\\n"; // word + (nothing after backslash)
    
            InputStream is = new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8));
            stopwordsFile.reload(null, is);
    
            assertEquals(2, stopwordsFile.stopwordsItemList.size());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
Back to top