Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for testReadBytesWireFormat (1.75 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java

            int result = sdd.readParameterWordsWireFormat(buffer, 0);
            assertEquals(0, result);
        }
    
        /**
         * Test readBytesWireFormat.
         */
        @Test
        void testReadBytesWireFormat() {
            SmbComDeleteDirectory sdd = new SmbComDeleteDirectory("testDir");
            byte[] buffer = new byte[10];
            int result = sdd.readBytesWireFormat(buffer, 0);
            assertEquals(0, result);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java

            // Then
            assertEquals(0, result);
        }
    
        /**
         * Test of readBytesWireFormat method
         */
        @Test
        public void testReadBytesWireFormat() {
            // Given
            byte[] buffer = new byte[10];
            SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            verify(mockOutputData).encode(any(byte[].class), anyInt());
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat returns 0")
        void testReadBytesWireFormat() {
            setupMockConfig();
            Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE);
            byte[] buffer = new byte[1024];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java

            assertEquals(0, bytesRead);
        }
    
        /**
         * Test method for {@link jcifs.internal.smb1.com.SmbComClose#readBytesWireFormat(byte[], int)}.
         */
        @Test
        public void testReadBytesWireFormat() {
            // Given
            SmbComClose smbComClose = new SmbComClose(config, 1, 1L);
            byte[] buffer = new byte[0];
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            // Verify reserved field is zero
            assertEquals(0, SMBUtil.readInt4(buffer, offset + 28));
        }
    
        @Test
        @DisplayName("Should read empty bytes from wire format")
        void testReadBytesWireFormat() {
            // Given
            byte[] buffer = new byte[256];
            int offset = 10;
    
            // When
            int bytesRead = request.readBytesWireFormat(buffer, offset);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java

            // The method should write bytes
            assertEquals(0, result, "writeBytesWireFormat should return 0 for response");
        }
    
        @Test
        void testReadBytesWireFormat() {
            byte[] buffer = new byte[1024];
            int result = response.readBytesWireFormat(buffer, 0);
    
            // The method should read bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

            // The implementation always returns 0
            assertEquals(0, result, "readParameterWordsWireFormat returns 0");
        }
    
        @Test
        void testReadBytesWireFormat() {
            byte[] buffer = new byte[1024];
    
            int result = setupAndX.readBytesWireFormat(buffer, 0);
    
            // The implementation always returns 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            assertEquals(0, buffer[offset + 3], "Reserved bytes should be 0");
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat returns 0")
        void testReadBytesWireFormat() {
            // Given
            Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L);
            byte[] buffer = new byte[100];
            int offset = 10;
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            byte[] expected = new byte[] { 0x04, 0x00, 0x00, 0x00 };
            assertArrayEquals(expected, buffer);
        }
    
        @Test
        @DisplayName("Should always return 0 for readBytesWireFormat")
        void testReadBytesWireFormat() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
            Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig);
            byte[] buffer = createTestData(256);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                assertEquals(0x001F01FF, access, "Should return maximal access value");
            }
    
            @Test
            @DisplayName("Should decode response from bytes correctly")
            void testReadBytesWireFormat() throws Exception {
                // Given - Prepare a valid SMB2 Tree Connect Response buffer
                byte[] buffer = new byte[16];
                // Structure size (16)
                buffer[0] = 0x10;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top