Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 106 for testConstructor2 (0.08 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            response = new NtTransQuerySecurityDescResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor creates instance with null security descriptor")
        void testConstructor() {
            assertNotNull(response);
            assertNull(response.getSecurityDescriptor());
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat returns 0")
        void testWriteSetupWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Constructor should initialize with correct values")
        void testConstructor() throws Exception {
            // Given
            String filename = "\\\\server\\share\\file.txt";
    
            // When
            trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, filename);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create echo request with correct command")
            void testConstructor() throws Exception {
                Smb2EchoRequest request = new Smb2EchoRequest(mockConfig);
                assertNotNull(request);
    
                // Verify command is set to SMB2_ECHO (0x000D)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Unit tests for DirectoryLeaseContext
     */
    public class DirectoryLeaseContextTest {
    
        @Test
        public void testConstructor() {
            Smb2LeaseKey key = new Smb2LeaseKey();
            int leaseState = DirectoryLeaseState.DIRECTORY_READ_HANDLE;
            DirectoryCacheScope scope = DirectoryCacheScope.IMMEDIATE_CHILDREN;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

            transaction = new TestSmbComTransaction(mockConfig, SmbComTransaction.SMB_COM_TRANSACTION, SmbComTransaction.TRANS2_FIND_FIRST2);
        }
    
        @Test
        @DisplayName("Test constructor initialization")
        void testConstructor() {
            // Verify command and subcommand are set correctly
            assertEquals(SmbComTransaction.SMB_COM_TRANSACTION, transaction.getCommand());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

        public void setUp() {
            leaseKey = new Smb2LeaseKey();
            entry = new DirectoryCacheEntry(directoryPath, leaseKey, DirectoryCacheScope.IMMEDIATE_CHILDREN);
        }
    
        @Test
        public void testConstructor() {
            assertEquals(directoryPath, entry.getDirectoryPath());
            assertEquals(leaseKey, entry.getLeaseKey());
            assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, entry.getScope());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
            Properties props = new Properties();
            config = new PropertyConfiguration(props);
        }
    
        @Test
        void testConstructor() {
            // Test constructor initializes all fields correctly
            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL);
    
            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)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
            Properties props = new Properties();
            config = new PropertyConfiguration(props);
        }
    
        @Test
        void testConstructor() {
            // Test constructor with SMB_INFO_ALLOCATION
            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            assertNotNull(response);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            config = new PropertyConfiguration(props);
            response = new Trans2SetFileInformationResponse(config);
        }
    
        @Test
        @DisplayName("Test constructor initializes object correctly")
        void testConstructor() {
            // Test that the constructor properly initializes the object
            assertNotNull(response);
            // The command is not set in the constructor, defaults to 0
            assertEquals(0, response.getCommand());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Test constructor initializes fields correctly")
        void testConstructor() {
            // Act
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH);
    
            // Assert
            assertNotNull(trans);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top