Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 103 for TestConstructor (0.16 sec)

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

     */
    class SmbComOpenAndXResponseTest {
    
        private SmbComOpenAndXResponse response;
    
        @BeforeEach
        void setUp() {
            response = new SmbComOpenAndXResponse();
        }
    
        @Test
        void testConstructor() {
            assertNotNull(response);
            // Default values from constructor
            assertEquals(0, response.fid);
            assertEquals(0, response.fileAttributes);
            assertEquals(0L, response.lastWriteTime);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

            when(mockAuth.getDomain()).thenReturn("TESTDOMAIN");
    
            setupAndX = new SmbComSessionSetupAndX(mockSession, mockAndx, mockAuth);
        }
    
        @Test
        void testConstructor() {
            assertNotNull(setupAndX);
            assertEquals(ServerMessageBlock.SMB_COM_SESSION_SETUP_ANDX, setupAndX.command);
            assertEquals(mockSession, setupAndX.session);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DosFileFilterTest.java

         * The wildcard parameter is stored but its filtering logic is handled server-side,
         * so we only verify its acceptance here.
         */
        @Test
        void testConstructor() {
            // The constructor should not throw any exceptions with valid inputs.
            new DosFileFilter("*.*", SmbFile.ATTR_ARCHIVE);
            new DosFileFilter("?", SmbFile.ATTR_DIRECTORY);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java

        }
    
        /**
         * Test for the constructor of {@link Trans2SetFileInformationResponse}.
         * It should initialize the subCommand correctly.
         */
        @Test
        void testConstructor() {
            // Verify that the subCommand is set to TRANS2_SET_FILE_INFORMATION
            assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, response.subCommand,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

            response = new SmbComQueryInformationResponse(serverTimeZoneOffset);
        }
    
        /**
         * Test of constructor, of class SmbComQueryInformationResponse.
         */
        @Test
        public void testConstructor() {
            // The constructor sets the command and serverTimeZoneOffset.
            // We can't directly access serverTimeZoneOffset, but we can verify its effect.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top