Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for subfolders (0.74 sec)

  1. src/test/java/jcifs/internal/dtyp/ACETest.java

        @ParameterizedTest
        @DisplayName("Test getApplyToText with different flag combinations")
        @CsvSource({ "0x00, This folder only", "'0x03', 'This folder, subfolders and files'", "0x0B, Subfolders and files only",
                "0x02, This folder and subfolders", "0x0A, Subfolders only", "0x01, This folder and files", "0x09, Files only",
                "0x08, Invalid" })
        void testGetApplyToText(String flagsHex, String expectedText) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ACETest.java

            void shouldDefineGetApplyToText() {
                ACE ace = mock(ACE.class);
                when(ace.getApplyToText()).thenReturn("This folder, subfolders and files");
    
                String text = ace.getApplyToText();
                assertEquals("This folder, subfolders and files", text);
                verify(ace).getApplyToText();
            }
        }
    
        @Nested
        @DisplayName("Windows Access Check Algorithm Tests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            assertTrue(entry1.isComplete());
            assertTrue(entry2.isComplete());
            assertTrue(entry1.hasChild("document.txt"));
            assertFalse(entry1.hasChild("subfolder"));
            assertTrue(entry2.hasChild("subfolder"));
            assertFalse(entry2.hasChild("document.txt"));
    
            // Test individual change notification
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/InputValidatorTest.java

        }
    
        @ParameterizedTest
        @DisplayName("Test valid SMB paths")
        @ValueSource(strings = { "\\\\server\\share\\file.txt", "folder\\subfolder\\file.doc", "Documents\\Reports\\2024", "file.txt", "" })
        void testValidSmbPaths(String path) {
            assertDoesNotThrow(() -> InputValidator.validateSmbPath(path));
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/FileNotifyInformationTest.java

                assertEquals(actionValue, mockFileNotifyInfo.getAction());
            }
    
            @ParameterizedTest
            @CsvSource({ "file.txt", "document.doc", "image.png", "folder/subfolder/file.txt", "C:\\Windows\\System32\\config.sys",
                    "/usr/local/bin/app", "file with spaces.txt", "''" // empty string
            })
            @DisplayName("Test getFileName with various file names")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Then
            assertEquals(0, bytesRead);
        }
    
        @ParameterizedTest
        @ValueSource(strings = { "\\\\server\\share", "\\\\192.168.1.1\\share", "\\\\server.domain.com\\share", "\\\\server\\share\\subfolder",
                "\\\\s\\s" // Minimum path
        })
        @DisplayName("Should handle various valid path formats")
        void testVariousPathFormats(String path) throws Exception {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

            void testVeryLongPaths() {
                StringBuilder longPath = new StringBuilder("\\server\\share");
                for (int i = 0; i < 100; i++) {
                    longPath.append("\\subfolder").append(i);
                }
    
                when(mockReferral.getTtl()).thenReturn(300);
                when(mockReferral.getRFlags()).thenReturn(0);
                when(mockReferral.getNode()).thenReturn(longPath.toString());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                assertEquals("share", concreteShare);
            }
    
            @Test
            @DisplayName("Should get path")
            void testGetPath() {
                String path = "folder\\subfolder\\file.txt";
    
                // Test with mock
                when(mockReferralData.getPath()).thenReturn(path);
                assertEquals(path, mockReferralData.getPath());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
Back to top