Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 45 for testWriteBytesWireFormat (0.35 sec)

  1. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

        @Nested
        @DisplayName("WriteBytesWireFormat Tests")
        class WriteBytesWireFormatTests {
    
            @Test
            @DisplayName("Should always return 0 for write operation")
            void testWriteBytesWireFormat() {
                byte[] buffer = new byte[64];
                int result = notification.writeBytesWireFormat(buffer, 0);
                assertEquals(0, result);
    
                // Test with different offsets
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            int expectedSize = (expectedRawSize + 7) & ~7; // Round up to nearest 8
            assertEquals(expectedSize, size);
        }
    
        @Test
        @DisplayName("Test writeBytesWireFormat method")
        void testWriteBytesWireFormat() {
            request = new Smb2SetInfoRequest(mockConfig, testFileId);
            request.setInfoType((byte) 0x01);
            request.setFileInfoClass((byte) 0x04);
            request.setAdditionalInformation(0x12345678);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

        }
    
        @Nested
        @DisplayName("Write Bytes Wire Format Tests")
        class WriteBytesWireFormatTests {
    
            @Test
            @DisplayName("Should return 0 for writeBytesWireFormat")
            void testWriteBytesWireFormat() {
                byte[] buffer = new byte[1024];
                int result = echoResponse.writeBytesWireFormat(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
    - 15.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

        }
    
        @Nested
        @DisplayName("WriteBytesWireFormat Tests")
        class WriteBytesWireFormatTests {
    
            @Test
            @DisplayName("Should write correct structure size")
            void testWriteBytesWireFormat() {
                byte[] buffer = new byte[100];
                int startIndex = 10;
    
                int bytesWritten = echoRequest.writeBytesWireFormat(buffer, startIndex);
    
                // Should write 4 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            byte[] buffer = new byte[256];
            int bytesWritten = response.writeParameterWordsWireFormat(buffer, 0);
    
            assertEquals(0, bytesWritten);
        }
    
        @Test
        void testWriteBytesWireFormat() {
            // Test writeBytesWireFormat - should always return 0
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
    
            byte[] buffer = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

        void testInitialDataRemaining() {
            // Then
            assertEquals(0, response.getDataRemaining());
        }
    
        @Test
        @DisplayName("Should write empty bytes to wire format")
        void testWriteBytesWireFormat() {
            // Given
            byte[] buffer = new byte[256];
            int offset = 10;
    
            // When
            int bytesWritten = response.writeBytesWireFormat(buffer, offset);
    
            // Then
    Registered: Sun Sep 07 00:10:21 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("WriteBytesWireFormat Tests")
        class WriteBytesWireFormatTests {
    
            @Test
            @DisplayName("Should write request structure correctly")
            void testWriteBytesWireFormat() {
                // Setup
                byte[] data = new byte[100];
                new Random().nextBytes(data);
                request.setData(data, 0, data.length);
                request.setOffset(1024L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

        }
    
        @Nested
        @DisplayName("WriteBytesWireFormat Tests")
        class WriteBytesWireFormatTests {
    
            @Test
            @DisplayName("Should write request structure correctly")
            void testWriteBytesWireFormat() {
                // Setup
                request.setPadding((byte) 2);
                request.setReadFlags((byte) 0x01);
                request.setReadLength(4096);
                request.setOffset(8192L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            assertEquals("Incompatible file information class", exception.getMessage());
        }
    
        @Test
        @DisplayName("Test writeBytesWireFormat returns 0")
        void testWriteBytesWireFormat() {
            response = new Smb2QueryInfoResponse(mockConfig, (byte) 1, (byte) 2);
            byte[] dst = new byte[1024];
            int dstIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

            }
        }
    
        @Nested
        @DisplayName("writeBytesWireFormat Tests")
        class WriteBytesWireFormatTests {
    
            @Test
            @DisplayName("Should always return 0")
            void testWriteBytesWireFormat() {
                // Given
                byte[] dst = new byte[100];
                int dstIndex = 0;
    
                // When
                int result = response.writeBytesWireFormat(dst, dstIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top