Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for testEncodeDecodeRoundTrip (1.17 sec)

  1. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

                assertEquals(0, destinationBuffer[i]);
            }
        }
    
        @Test
        @DisplayName("Test encode and decode roundtrip")
        void testEncodeDecodeRoundtrip() throws SMBProtocolDecodingException {
            // Setup first instance with test data
            long expectedIndexNumber = 0x1122334455667788L;
            byte[] originalBuffer = new byte[8];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

        }
    
        @Nested
        @DisplayName("Round-trip Tests")
        class RoundTripTests {
    
            @Test
            @DisplayName("Should handle encode-decode round-trip correctly")
            void testEncodeDecodeRoundTrip() throws NdrException {
                // Given: Original value that fits in byte range
                int originalValue = 150;
                NdrShort ndrShort1 = new NdrShort(originalValue);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            assertEquals(20 + nameBytes.length, bytesRead);
        }
    
        @Test
        @DisplayName("Test encode and decode round trip")
        void testEncodeDecodeRoundTrip() throws SMBProtocolDecodingException {
            String fileName = "roundtrip_test.txt";
            boolean replaceIfExists = true;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            assertEquals(0, destinationBuffer[dstIndex + 21]); // directory
        }
    
        @Test
        @DisplayName("Test encode and decode roundtrip")
        void testEncodeDecodeRoundtrip() throws SMBProtocolDecodingException {
            // Setup first instance with test data
            byte[] originalBuffer = new byte[22];
            long expectedAllocationSize = 32768L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            assertEquals(8, bytesRead);
            assertTrue(fileInfo.toString().contains("endOfFile=" + expectedValue));
        }
    
        @Test
        @DisplayName("Test encode and decode round trip")
        void testEncodeDecodeRoundTrip() throws SMBProtocolDecodingException {
            // Test various values
            long[] testValues = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE, 0x123456789ABCDEFL };
    
            for (long testValue : testValues) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            // Reset and verify
            messageBlock.reset();
            verify(messageBlock).reset();
        }
    
        @Test
        @DisplayName("Test encode and decode round trip")
        void testEncodeDecodeRoundTrip() throws SMBProtocolDecodingException {
            // Given
            byte[] buffer = new byte[512];
            int encodeIndex = 0;
            int decodeIndex = 0;
            int encodeLength = 100;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            assertEquals(TEST_ATTRIBUTES, fileBasicInfo.getAttributes());
        }
    
        @Test
        @DisplayName("Test encode and decode roundtrip")
        void testEncodeDecodeRoundtrip() throws SMBProtocolDecodingException {
            // Create original instance
            FileBasicInfo original =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            assertEquals(TEST_ATTRIBUTES, fileBasicInfo.getAttributes());
        }
    
        @Test
        @DisplayName("Test encode and decode roundtrip")
        void testEncodeDecodeRoundtrip() throws SMBProtocolDecodingException {
            // Given
            FileBasicInfo originalInfo =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top