Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 106 for testConstructors (0.05 sec)

  1. 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)
  2. 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)
  3. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

        private Configuration mockConfig;
        private SmbComQueryInformationResponse response;
    
        @BeforeEach
        void setUp() {
            mockConfig = mock(Configuration.class);
        }
    
        @Test
        void testConstructor() {
            // Test constructor with positive timezone offset
            long serverTimeZoneOffset = 3600000L; // 1 hour in milliseconds
            response = new SmbComQueryInformationResponse(mockConfig, serverTimeZoneOffset);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

        }
    
        /**
         * Test constructor initialization with valid parameters
         */
        @Test
        @DisplayName("Test constructor initializes fields correctly")
        public void testConstructor() throws Exception {
            // Given
            String oldFileName = "oldFile.txt";
            String newFileName = "newFile.txt";
    
            // When
            smbComRename = new SmbComRename(config, oldFileName, newFileName);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

        void setUp() {
            mockConfig = mock(Configuration.class);
            response = new Smb2SetInfoResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor initializes with config")
        void testConstructor() {
            assertNotNull(response);
            // Command is not set in constructor, only after decoding
            assertEquals((short) 0, response.getCommand());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

                response = new SmbComNegotiateResponse(mockContext);
            } catch (Exception e) {
                throw new RuntimeException("Failed to set up test", e);
            }
        }
    
        @Test
        public void testConstructor() {
            assertNotNull(response);
            assertEquals(DialectVersion.SMB1, response.getSelectedDialect());
        }
    
        @Test
        public void testReadParameterWordsWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            // Initialize default dialects
            defaultDialects = new int[] { 0x0202, 0x0210, 0x0300, 0x0302, 0x0311 };
        }
    
        @Test
        @DisplayName("Test constructor with valid parameters")
        void testConstructor() {
            ValidateNegotiateInfoRequest request =
                    new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, defaultClientGuid, DEFAULT_SECURITY_MODE, defaultDialects);
    
            assertNotNull(request);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            MockitoAnnotations.openMocks(this);
            response = new NtTransNotifyChangeResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor creates instance with empty notification list")
        void testConstructor() {
            assertNotNull(response);
            assertNotNull(response.getNotifyInformation());
            assertTrue(response.getNotifyInformation().isEmpty());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            }
    
            request = new Smb2FlushRequest(mockConfig, testFileId);
        }
    
        @Test
        @DisplayName("Constructor should initialize with correct command and file ID")
        void testConstructor() throws Exception {
            // Verify command is set correctly (SMB2_FLUSH = 0x0007)
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Constructor should initialize with correct values")
        void testConstructor() {
            // Act
            transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_FID);
    
            // Assert
            assertNotNull(transPeekNamedPipe);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
Back to top