Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 112 for testConstructor (0.57 sec)

  1. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

        @BeforeEach
        void setUp() {
            // Setup will be done in individual tests when needed
        }
    
        @Test
        @DisplayName("Test constructor with path initialization")
        void testConstructor() {
            // Test with normal path
            request = new Smb2CreateRequest(mockConfig, "test\\file.txt");
            assertNotNull(request);
            assertEquals("\\test\\file.txt", request.getPath());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            // Mock configuration setup
            when(mockConfig.getTransactionBufferSize()).thenReturn(65535);
        }
    
        @Test
        @DisplayName("Test constructor initializes fields correctly")
        void testConstructor() {
            netShareEnum = new NetShareEnum(realConfig);
    
            assertNotNull(netShareEnum);
            assertEquals("\\PIPE\\LANMAN", getFieldValue(netShareEnum, "name"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            response = new TestSmbComNtTransactionResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor with Configuration")
        void testConstructor() {
            assertNotNull(response);
            // Verify configuration is set through parent constructor
            verify(mockConfig, atLeastOnce()).getPid();
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

        @BeforeEach
        void setUp() {
            buffer = new byte[1024]; // Initialize with a reasonable size
            ndrBuffer = new NdrBuffer(buffer, 0);
        }
    
        @Test
        void testConstructor() {
            // Verify initial state
            assertEquals(0, ndrBuffer.start);
            assertEquals(0, ndrBuffer.index);
            assertEquals(0, ndrBuffer.length);
            assertSame(ndrBuffer, ndrBuffer.deferred);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create response with default values")
            void testConstructor() {
                SrvCopyChunkCopyResponse copyResponse = new SrvCopyChunkCopyResponse();
                assertNotNull(copyResponse);
            }
    
            @Test
            @DisplayName("Should initialize chunksWritten to zero")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            response = new Smb2ReadResponse(mockConfig, outputBuffer, outputBufferOffset);
        }
    
        @Test
        @DisplayName("Should create response with configuration and output buffer")
        void testConstructor() {
            // Given
            byte[] buffer = new byte[512];
            int offset = 10;
    
            // When
            Smb2ReadResponse resp = new Smb2ReadResponse(mockConfig, buffer, offset);
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create request with configuration and file ID")
            void testConstructor() {
                Smb2WriteRequest writeRequest = new Smb2WriteRequest(mockConfig, testFileId);
                assertNotNull(writeRequest);
                assertTrue(writeRequest instanceof ServerMessageBlock2Request);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create request with all parameters")
            void testConstructor() {
                Smb2Lock[] locks = new Smb2Lock[] { new Smb2Lock(0L, 1024L, Smb2Lock.SMB2_LOCKFLAG_SHARED_LOCK) };
                Smb2LockRequest lockRequest = new Smb2LockRequest(mockConfig, testFileId, locks);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            mockConfig = new BaseConfiguration(false);
            response = new NetShareEnumResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor with configuration")
        void testConstructor() {
            assertNotNull(response);
            // Response is successfully created with configuration
            assertTrue(response instanceof NetShareEnumResponse);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            fileBothDirectoryInfoNonUnicode = new FileBothDirectoryInfo(mockConfig, false);
        }
    
        @Test
        @DisplayName("Test constructor initializes fields correctly")
        void testConstructor() {
            assertNotNull(fileBothDirectoryInfo);
            assertNotNull(fileBothDirectoryInfoNonUnicode);
        }
    
        @Test
        @DisplayName("Test getName returns filename")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
Back to top