Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testBytes (2.55 sec)

  1. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

                assertEquals(testBytes[i], buffer[i + 2]);
            }
        }
    
        @Test
        @DisplayName("Should implement equals correctly")
        void testEquals() {
            byte[] testBytes1 = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 };
            byte[] testBytes2 = Arrays.copyOf(testBytes1, 16);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                byte[] buffer = new byte[100];
                // Create "Test\0" in UTF-16LE with proper null terminator
                byte[] testBytes = Strings.getUNIBytes("Test");
                System.arraycopy(testBytes, 0, buffer, 0, 8);
                buffer[8] = 0; // null terminator low byte
                buffer[9] = 0; // null terminator high byte
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            @Test
            @DisplayName("Should not modify buffer beyond encoded area")
            void testEncodeDoesNotModifyBeyondArea() {
                // Given
                byte testByte = (byte) 0xFF;
                java.util.Arrays.fill(buffer, testByte);
                SrvCopychunk chunk = new SrvCopychunk(1024, 2048, 4096);
    
                // When
                chunk.encode(buffer, startIndex);
    
                // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

         */
        public void testEncodeDecode_RoundTrip() throws Exception {
            // Test with ASCII text
            final String text = "Hello, World!";
            final byte[] textBytes = text.getBytes("UTF-8");
            final String encoded = Base64Util.encode(textBytes);
            final byte[] decoded = Base64Util.decode(encoded);
            assertEquals("Round trip should preserve data", text, new String(decoded, "UTF-8"));
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

            }
    
            @Test
            @DisplayName("Should not modify buffer beyond encoded area")
            void testEncodeDoesNotModifyBeyondArea() {
                // Given
                byte testByte = (byte) 0xEE;
                Arrays.fill(buffer, testByte);
                SrvCopychunk chunk = new SrvCopychunk(1, 2, 3);
                SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, chunk);
                int expectedSize = HEADER_SIZE + CHUNK_SIZE;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
Back to top