Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 112 for testConstructor (0.18 sec)

  1. src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java

        @BeforeEach
        void setUp() {
            netServerEnum2 = new NetServerEnum2(testDomain, testServerTypes);
        }
    
        /**
         * Test the constructor of NetServerEnum2.
         */
        @Test
        void testConstructor() {
            assertEquals(testDomain, netServerEnum2.domain);
            assertEquals(testServerTypes, netServerEnum2.serverTypes);
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION, netServerEnum2.command);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NameQueryRequestTest.java

        @Mock
        private Configuration mockConfig;
        @Mock
        private Name mockName;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void testConstructor() {
            // Test that the constructor correctly initializes questionName and questionType
            NameQueryRequest request = new NameQueryRequest(mockConfig, mockName);
    
            assertNotNull(request);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java

        @BeforeEach
        void setUp() throws UnknownHostException {
            testAddress = InetAddress.getByName("192.168.1.100");
            loopbackAddress = InetAddress.getLoopbackAddress();
        }
    
        @Test
        void testConstructor() {
            NetworkInterfaceInfo info = new NetworkInterfaceInfo(testAddress, 1000);
    
            assertEquals(testAddress, info.getAddress());
            assertEquals(1000, info.getLinkSpeed());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import org.junit.jupiter.api.Test;
    
    class SmbShareInfoTest {
    
        /**
         * Test of constructor, of class SmbShareInfo.
         */
        @Test
        void testConstructor() {
            // Test no-argument constructor
            SmbShareInfo instance = new SmbShareInfo();
            assertNotNull(instance);
    
            // Test constructor with arguments
            String netName = "SHARE";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

        }
    
        /**
         * Test the constructor of SmbComNegotiate.
         * It should initialize the command and flags2 with default values.
         */
        @Test
        void testConstructor() {
            // Verify that the command is set to SMB_COM_NEGOTIATE
            assertEquals(ServerMessageBlock.SMB_COM_NEGOTIATE, smbComNegotiate.command,
                    "Constructor should set the command to SMB_COM_NEGOTIATE.");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            Properties props = new Properties();
            config = new PropertyConfiguration(props);
            response = new Trans2FindFirst2Response(config);
        }
    
        @Test
        void testConstructor() {
            // Test that the constructor properly initializes the object
            assertNotNull(response);
            // The command should be SMB_COM_TRANSACTION2 (0x32 = 50)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

                    clazz = clazz.getSuperclass();
                }
            }
            throw new NoSuchFieldException(fieldName);
        }
    
        @Test
        @DisplayName("Constructor initializes fields")
        void testConstructor() throws Exception {
            Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("/file");
            assertEquals("/file", getPrivateField(cmd, "path"));
            assertEquals((byte) 0x00, getPrivateField(cmd, "maxSetupCount"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

    /**
     * Unit tests for the Trans2QueryPathInformation class.
     */
    class Trans2QueryPathInformationTest {
    
        /**
         * Tests the constructor of Trans2QueryPathInformation.
         */
        @Test
        void testConstructor() {
            // Given
            String filename = "testFile.txt";
            int informationLevel = 0x0100; // SMB_QUERY_FILE_BASIC_INFO
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

        void setUp() {
            MockitoAnnotations.openMocks(this);
            outputBuffer = new byte[1024];
            response = new TransTransactNamedPipeResponse(mockConfig, outputBuffer);
        }
    
        @Test
        void testConstructor() {
            // Verify that the response is created with correct configuration and buffer
            assertNotNull(response);
    
            // Use reflection to verify the outputBuffer is set correctly
            try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            when(mockConfiguration.isTraceResourceUsage()).thenReturn(false); // Default to false or true based on expected behavior
            cifsContextWrapper = new CIFSContextWrapper(mockDelegate);
        }
    
        @Test
        void testConstructor() {
            // Verify that the delegate is correctly set
            assertNotNull(cifsContextWrapper);
        }
    
        @Test
        void testGetSmbResource() throws CIFSException, MalformedURLException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top