Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 103 for TestConstructor (0.08 sec)

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

            doNothing().when(smbFile).open(anyInt(), anyInt(), anyInt(), anyInt());
    
            smbRandomAccessFile = new SmbRandomAccessFile(smbFile, "rw");
        }
    
        @Test
        void testConstructor() throws SmbException {
            assertNotNull(smbRandomAccessFile);
            assertEquals(0, smbRandomAccessFile.getFilePointer());
        }
    
        @Test
        void testGetFilePointer() throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

            when(mockConfig.getChannelHealthCheckInterval()).thenReturn(10);
    
            channelManager = new ChannelManager(mockContext, mockSession);
        }
    
        @Test
        void testConstructor() {
            assertNotNull(channelManager);
            assertFalse(channelManager.isUseMultiChannel());
            assertEquals(0, channelManager.getChannels().size());
            assertNotNull(channelManager.getLoadBalancer());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NbtExceptionTest.java

         */
        @Test
        @DisplayName("NbtException constructor should correctly set error class, error code, and message")
        void testConstructor() {
            int errorClass = NbtException.ERR_NAM_SRVC;
            int errorCode = NbtException.FMT_ERR;
            NbtException exception = new NbtException(errorClass, errorCode);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

                throw new RuntimeException("Failed to access field " + fieldName, e);
            }
        }
    
        /**
         * Test that the constructor initializes all fields correctly
         */
        @Test
        public void testConstructor() {
            // Arrange
            int fid = 0x1234;
            int offset = 100;
            int remaining = 50;
            byte[] buffer = new byte[100];
            int off = 10;
            int len = 40;
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

                    || exception.getMessage().contains("not found"), "Exception message should indicate name resolution failure");
        }
    
        @Test
        @DisplayName("Should handle constructor with context")
        void testConstructor() {
            // When
            NameServiceClientImpl client = new NameServiceClientImpl(mockContext);
    
            // Then
            assertNotNull(client, "Should create client instance");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java

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