Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testMkdir (2.5 sec)

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

                // Mock tree handle's getConfig() to return our mock config
                when(mockTreeHandle.getConfig()).thenReturn(mockConfig);
            }
    
            @Test
            void testMkdir() throws SmbException, CIFSException {
                // Arrange
                when(mockTreeHandle.isSMB2()).thenReturn(false);
    
                // Mock exists() check - mkdir checks if directory already exists
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. docs/smb3-features/04-directory-leasing-design.md

        context.getConfig().setProperty("jcifs.smb.client.directoryNotificationsEnabled", "true");
        
        SmbFile dir = new SmbFile("smb://server/share/testdir/", context);
        SmbFile testFile = new SmbFile("smb://server/share/testdir/newfile.txt", context);
        
        // Get initial listing (establishes cache)
        SmbFile[] initialFiles = dir.listFiles();
        
        // Create new file
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbResourceTest.java

            @Test
            @DisplayName("getName should handle directory names with trailing slash")
            void testGetName_DirectoryWithSlash() throws CIFSException {
                // Given
                String expectedName = "testdir/";
                when(mockResource.getName()).thenReturn(expectedName);
    
                // When
                String name = mockResource.getName();
    
                // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
Back to top