Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for testMkdir (0.55 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java

            SmbComDeleteDirectory sdd = new SmbComDeleteDirectory("testDir");
            assertEquals("testDir", sdd.path);
            assertEquals(ServerMessageBlock.SMB_COM_DELETE_DIRECTORY, sdd.command);
        }
    
        /**
         * Test writeParameterWordsWireFormat.
         */
        @Test
        void testWriteParameterWordsWireFormat() {
            SmbComDeleteDirectory sdd = new SmbComDeleteDirectory("testDir");
            byte[] dst = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/IoTestCase.java

          try {
            File testFile = new File(testFileUrl.toURI());
            testDir = testFile.getParentFile(); // the testdata directory
          } catch (Exception ignore) {
            // probably URISyntaxException or IllegalArgumentException
            // fall back to copying URLs to files in the testDir == null block below
          }
        }
    
        if (testDir == null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java

    public class DictionaryManagerTest extends UnitFessTestCase {
        private File testDir;
    
        private File file1;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            testDir = File.createTempFile("synonymtest", "_dir");
            testDir.delete();
            testDir.mkdirs();
            file1 = new File(testDir, "synonym.txt");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

            SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, "testDir");
            byte[] dst = new byte[10];
            int result = smbCom.writeParameterWordsWireFormat(dst, 0);
            assertEquals(0, result);
        }
    
        @Test
        void testWriteBytesWireFormat() {
            // Test the byte format written by the class
            String directoryName = "\testDir";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/ExecJobTest.java

            execJob.testDeleteTempDir(null);
    
            // Test with existing directory
            File testDir = new File(tempDir, "test_delete_dir");
            assertTrue(testDir.mkdir());
            assertTrue(testDir.exists());
    
            execJob.testDeleteTempDir(testDir);
            assertFalse(testDir.exists());
    
            // Test with non-existent directory
            File nonExistentDir = new File(tempDir, "non_existent");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
Back to top