Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 45 of 45 for testWriteBytesWireFormat (0.22 sec)

  1. 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)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            assertNotNull(results);
            assertEquals(2, results.length);
            assertSame(entries, results);
        }
    
        @Test
        @DisplayName("Test writeBytesWireFormat returns 0")
        void testWriteBytesWireFormat() {
            response = new Smb2QueryDirectoryResponse(mockConfig, (byte) 0x03);
            byte[] dst = new byte[1024];
            int dstIndex = 0;
    
            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
    - 23.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            assertNotNull(response.getNegotiateContexts());
            assertEquals(2, response.getNegotiateContexts().length);
        }
    
        @Test
        @DisplayName("Should write empty bytes to wire format")
        void testWriteBytesWireFormat() {
            // Given
            byte[] buffer = new byte[256];
    
            // When
            int bytesWritten = response.writeBytesWireFormat(buffer, 0);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top