Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for test_filename (0.11 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            assertEquals(TEST_FILENAME, actualFilename);
    
            // Verify total bytes written
            assertTrue(written >= 12 + TEST_FILENAME.length());
        }
    
        @Test
        void testWriteDataWireFormat() {
            // Test data wire format writing (should return 0)
            trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, TEST_FILENAME, TEST_BATCH_COUNT, TEST_BATCH_SIZE);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            // Test with FILE_BASIC_INFO
            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, FileInformation.FILE_BASIC_INFO);
            assertNotNull(trans2QueryPathInfo);
    
            // Test with FILE_STANDARD_INFO
            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, FileInformation.FILE_STANDARD_INFO);
            assertNotNull(trans2QueryPathInfo);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/job/PythonJobTest.java

        }
    
        @Override
        public void tearDown() throws Exception {
            ComponentUtil.setFessConfig(null);
            super.tearDown();
        }
    
        // Test filename setter
        public void test_filename() {
            assertNull(pythonJob.filename);
    
            PythonJob result = pythonJob.filename("test.py");
    
            assertSame(pythonJob, result);
            assertEquals("test.py", pythonJob.filename);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationTest.java

            // Expected format: buffer format (1 byte) + file name (null-terminated)
            int expectedLength = 1 + TEST_FILE_NAME.length() + 1;
            assertEquals(expectedLength, bytesWritten);
            assertEquals(0x04, dst[0]); // Buffer format
            assertEquals(TEST_FILE_NAME, new String(dst, 1, TEST_FILE_NAME.length()));
        }
    
        @Test
        public void testReadParameterWordsWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java

        private static final String TEST_FILE_NAME = "testFile.txt";
        private SmbComDelete smbComDelete;
    
        @BeforeEach
        public void setUp() {
            smbComDelete = new SmbComDelete(TEST_FILE_NAME);
        }
    
        @Test
        public void testConstructor() {
            // Test if the constructor sets the file name and command correctly
            assertEquals(TEST_FILE_NAME, smbComDelete.path);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            testFileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                testFileId[i] = (byte) (i + 1);
            }
    
            testFileName = "test-file.txt";
            request = new Smb2CloseRequest(mockConfig, testFileId, testFileName);
        }
    
        @Test
        @DisplayName("Constructor with fileId and fileName should initialize correctly")
        void testConstructorWithFileIdAndFileName() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

        private byte[] testFileId;
        private String testFileName;
    
        @BeforeEach
        void setUp() {
    
            // Create a test file ID (16 bytes)
            testFileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                testFileId[i] = (byte) (i + 1);
            }
    
            testFileName = "test-file.txt";
            response = new Smb2CloseResponse(mockConfig, testFileId, testFileName);
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacLogonInfoTest.java

    import jcifs.smb.SID;
    
    /**
     * Unit tests for PacLogonInfo class.
     * Tests the parsing and data extraction from PAC Logon Info structures.
     */
    class PacLogonInfoTest {
    
        private static final long TEST_FILETIME = 130640000000000000L;
        private static final String TEST_USERNAME = "testuser";
        private static final String TEST_DOMAIN = "TESTDOMAIN";
        private static final String TEST_SERVER = "SERVER01";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top