Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for testWriteSetupWireFormat (0.12 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            int writtenAttributes = SMBUtil.readInt2(buffer, 0);
            assertEquals(expectedAttributes, writtenAttributes);
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat")
        void testWriteSetupWireFormat() {
            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", 0x16, 10, 1024);
    
            byte[] buffer = new byte[10];
            int written = trans2FindFirst2.writeSetupWireFormat(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java

            assertNotNull(transCallNamedPipe);
            assertEquals(TEST_PIPE_NAME, transCallNamedPipe.name);
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat writes correct bytes")
        void testWriteSetupWireFormat() {
            // Given
            transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, 0, TEST_DATA.length);
            byte[] dst = new byte[10];
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            assertEquals((byte) 0x01, buf[5]);
        }
    
        /**
         * Ensures writeSetupWireFormat writes subcommand and trailing zero, returning 2.
         */
        @Test
        void testWriteSetupWireFormat() {
            // Given
            Trans2FindNext2 next = new Trans2FindNext2(0x1111, 0, "*");
            byte[] dst = new byte[2];
    
            // When
            int written = next.writeSetupWireFormat(dst, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

        void testConstructor() {
            assertNotNull(response);
            assertNull(response.getSecurityDescriptor());
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat returns 0")
        void testWriteSetupWireFormat() {
            byte[] buffer = new byte[100];
            int result = response.writeSetupWireFormat(buffer, 0);
    
            assertEquals(0, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

            // Then
            assertTrue(result);
        }
    
        @Test
        @DisplayName("writeSetupWireFormat should write setup bytes correctly")
        void testWriteSetupWireFormat() {
            // Given
            trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, "test");
            byte[] dst = new byte[10];
            int dstIndex = 0;
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            TransCallNamedPipeResponse testResponse = new TransCallNamedPipeResponse(mockConfig, testData);
            assertNotNull(testResponse);
        }
    
        @Test
        void testWriteSetupWireFormat() {
            byte[] dst = new byte[100];
            int result = response.writeSetupWireFormat(dst, 0);
            assertEquals(0, result);
        }
    
        @Test
        void testWriteParametersWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            assertEquals(4, querySecurityDesc.getPadding());
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat returns zero")
        void testWriteSetupWireFormat() {
            querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, 0x1234, OWNER_SECURITY_INFORMATION);
            byte[] dst = new byte[100];
    
            int result = querySecurityDesc.writeSetupWireFormat(dst, 10);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

            // Verify parent class is properly initialized
            assertTrue(response instanceof SmbComTransactionResponse);
        }
    
        @Test
        @DisplayName("writeSetupWireFormat should return 0")
        void testWriteSetupWireFormat() {
            // Arrange
            byte[] dst = new byte[100];
            int dstIndex = 0;
    
            // Act
            int result = response.writeSetupWireFormat(dst, dstIndex);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, FileInformation.FILE_ENDOFFILE_INFO);
            assertNotNull(trans2QueryPathInfo);
        }
    
        @Test
        void testWriteSetupWireFormat() {
            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL);
    
            byte[] buffer = new byte[256];
            int written = trans2QueryPathInfo.writeSetupWireFormat(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

            assertEquals(2, trans.setupCount);
            assertEquals("\\PIPE\\", trans.name);
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat writes correct data")
        void testWriteSetupWireFormat() {
            // Arrange
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH);
            byte[] dst = new byte[10];
            int dstIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top