Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 412 for testDfs (2.88 sec)

  1. src/test/java/jcifs/util/CryptoTest.java

            assertArrayEquals(plaintext, decrypted);
            assertNotEquals(new String(plaintext), new String(encrypted));
        }
    
        @Test
        @DisplayName("Should perform DES encryption/decryption")
        void testDES() throws Exception {
            // Given
            byte[] key = "testkey1".getBytes(); // 8 bytes for DES
            byte[] plaintext = "12345678".getBytes(); // 8 bytes (DES block size)
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/context/AbstractCIFSContextTest.java

                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
            public SidResolver getSIDResolver() {
                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
            public DfsResolver getDfs() {
                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Unit tests for the Trans2QueryPathInformation class.
     */
    class Trans2QueryPathInformationTest {
    
        /**
         * Tests the constructor of Trans2QueryPathInformation.
         */
        @Test
        void testConstructor() {
            // Given
            String filename = "testFile.txt";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. docs/SMB3_IMPLEMENTATION_PLAN.md

        D --> E[RDMA Support]
        C --> F[Witness Protocol]
        D --> F
    ```
    
    ## Testing Strategy
    
    ### Unit Tests
    - Individual component testing for each feature
    - Mock-based testing for protocol interactions
    - State machine validation
    
    ### Integration Tests
    - Feature interaction testing
    - Network failure simulation
    - Performance benchmarking
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

        }
    
        /**
         * Tests the constructor of {@link TransTransactNamedPipeResponse}.
         */
        @Test
        void testConstructor() {
            // The constructor is called in setUp(), so we just verify the result.
            assertNotNull(response, "The response object should not be null.");
        }
    
        /**
         * Tests the writeSetupWireFormat method.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.Configuration;
    
    /**
     * Tests for {@link SmbComSetInformationResponse}.
     *
     * Tests focus on the wire format methods which all return 0,
     * and the toString method implementation.
     */
    @ExtendWith(MockitoExtension.class)
    @DisplayName("SmbComSetInformationResponse tests")
    public class SmbComSetInformationResponseTest {
    
        @Mock
        private Configuration mockConfig;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/https/HandlerTest.java

    /**
     * Test suite for jcifs.https.Handler class.
     * Tests HTTPS URL stream handler functionality with NTLM authentication support.
     */
    @DisplayName("HTTPS Handler Tests")
    class HandlerTest {
    
        private Handler handler;
    
        @BeforeEach
        void setUp() {
            handler = new Handler(null);
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacUnicodeStringTest.java

    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the {@link PacUnicodeString} class.
     */
    class PacUnicodeStringTest {
    
        /**
         * Tests the constructor and getter methods.
         */
        @Test
        void testConstructorAndGetters() {
            // Create a new instance with some test data
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ResolverTypeTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the {@link ResolverType} enum.
     * This class ensures that the enum constants are defined as expected.
     */
    class ResolverTypeTest {
    
        /**
         * Tests that all expected enum constants exist.
         */
        @Test
        void testEnumConstants() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.smb1.Config;
    
    /**
     * Tests for {@link NtlmMessage}. Since {@code NtlmMessage} is abstract we
     * create a lightweight concrete subclass only to exercise the inherited
     * behaviour. The tests cover flag manipulation, byte‑buffer operations and
     * static helpers. Edge cases such as null or short arrays and negative
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top