Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for testEncodeWithOffset (0.2 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/util/ByteEncodableTest.java

            // Verify content
            assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset");
        }
    
        @Test
        void testEncodeWithOffset() {
            // Test encoding with a destination offset
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };
            ByteEncodable encodable = new ByteEncodable(data, 0, 3);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                assertEquals(2, bytesWritten);
                assertEquals(0, SMBUtil.readInt2(buffer, 0));
            }
    
            @Test
            @DisplayName("Should encode at non-zero offset")
            void testEncodeWithOffset() {
                int offset = 100;
                int[] ciphers = { EncryptionNegotiateContext.CIPHER_AES128_GCM };
                EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, ciphers);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            assertEquals(TEST_ATTRIBUTES, fileBasicInfo.getAttributes());
        }
    
        @Test
        @DisplayName("Test encode with offset")
        void testEncodeWithOffset() throws SMBProtocolDecodingException {
            FileBasicInfo info =
                    new FileBasicInfo(TEST_CREATE_TIME, TEST_LAST_ACCESS_TIME, TEST_LAST_WRITE_TIME, TEST_CHANGE_TIME, TEST_ATTRIBUTES);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

                assertEquals(defaultDialects[i], SMBUtil.readInt2(buffer, dialectOffset + i * 2));
            }
        }
    
        @Test
        @DisplayName("Test encode with offset")
        void testEncodeWithOffset() {
            ValidateNegotiateInfoRequest request =
                    new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, defaultClientGuid, DEFAULT_SECURITY_MODE, defaultDialects);
    
            int offset = 100;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                // Verify null terminator
                assertEquals(0, bb.getShort());
            }
    
            @Test
            @DisplayName("Should encode with offset correctly")
            void testEncodeWithOffset() {
                String path = "\\\\test";
                int maxReferralLevel = 5;
                buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);
    
                int offset = 10;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                assertEquals(0, SMBUtil.readInt2(buffer, 2));
            }
    
            @Test
            @DisplayName("Should encode at non-zero offset")
            void testEncodeWithOffset() {
                int offset = 100;
                int[] hashAlgos = { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 };
                byte[] salt = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 };
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 34K bytes
    - Click Count (0)
Back to Top