Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 554 for decoded (0.03 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      }
    
      @Test fun `cannot decode malformed utc time`() {
        val bytes = "170d3139313231362333303231305a".decodeHex()
        assertFailsWith<ProtocolException> {
          Adapters.UTC_TIME.fromDer(bytes)
        }.also { expected ->
          assertThat(expected).hasMessage("Failed to parse UTCTime 191216#30210Z")
        }
      }
    
      @Test fun `cannot decode generalized time with offset`() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java

            info1.encode(dst);
    
            ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
            // Use the encoded buffer for decoding
            NdrBuffer src = new NdrBuffer(encodeBuffer, 0);
            netdfs.DfsInfo1 decodedInfo1 = new netdfs.DfsInfo1();
            decodedInfo1.decode(src);
    
            assertEquals(info1.entry_path, decodedInfo1.entry_path);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/AllocInfoTest.java

            }
    
            @Test
            @DisplayName("Should inherit decode from Decodable")
            void shouldInheritDecodeMethod() throws NoSuchMethodException {
                // Verify method is inherited
                assertNotNull(AllocInfo.class.getMethod("decode", byte[].class, int.class, int.class));
                assertEquals(int.class, AllocInfo.class.getMethod("decode", byte[].class, int.class, int.class).getReturnType());
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dtyp/ACETest.java

            // Test decode
            int size = ace.decode(testBuffer, 0, testBuffer.length);
    
            // Verify results
            assertEquals(32, size);
            assertTrue(ace.isAllow());
            assertEquals(0x03, ace.getFlags());
            assertEquals(0x001200A9, ace.getAccessMask());
            assertNotNull(ace.getSID());
        }
    
        @Test
        @DisplayName("Test decode with deny ACE")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            assertEquals(0x1111, response.getSecurityMode(), "First decode security mode");
            assertEquals(0x0210, response.getDialect(), "First decode dialect");
    
            // Second decode - should overwrite values
            byte[] buffer2 = new byte[50];
            SMBUtil.writeInt4(0x22222222, buffer2, 0);
            SMBUtil.writeInt2(0x2222, buffer2, 20);
            SMBUtil.writeInt2(0x0311, buffer2, 22);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/rpcTest.java

                verify(mockNdrBuffer).enc_ndr_small((byte) 0xFF);
            }
    
            @Test
            @DisplayName("Should decode UUID correctly")
            void testUuidTDecode() throws NdrException {
                // Given: A UUID object to decode into
                rpc.uuid_t uuid = new rpc.uuid_t();
    
                // Mock the NdrBuffer responses for decoding
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

            SMBUtil.writeInt4(messageLength, buffer, bufferIndex + 12);
            System.arraycopy(testData, 0, buffer, bufferIndex + 16, testData.length);
    
            // Decode
            int bytesDecoded = response.decode(buffer, bufferIndex, buffer.length);
    
            // Verify results
            assertEquals(namedPipeState, response.getNamedPipeState());
            assertEquals(readDataAvailable, response.getReadDataAvailable());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThat(UnsignedLongs.decode("0xffffffffffffffff")).isEqualTo(0xffffffffffffffffL);
        assertThat(UnsignedLongs.decode("01234567")).isEqualTo(01234567); // octal
        assertThat(UnsignedLongs.decode("#1234567890abcdef")).isEqualTo(0x1234567890abcdefL);
        assertThat(UnsignedLongs.decode("987654321012345678")).isEqualTo(987654321012345678L);
        assertThat(UnsignedLongs.decode("0x135791357913579")).isEqualTo(0x135791357913579L);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            // Decode
            smbInfoAllocation.decode(buffer, 0, buffer.length);
    
            // Verify - with sectPerAlloc = 1, capacity = alloc * bytesPerSect
            assertEquals(alloc * bytesPerSect, smbInfoAllocation.getCapacity());
            assertEquals(free * bytesPerSect, smbInfoAllocation.getFree());
        }
    
        @Test
        @DisplayName("Test decode with large bytes per sector")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                // When: Decoding the value
                ndrShort.decode(mockBuffer);
    
                // Then: Should set the negative value directly (no masking on decode)
                verify(mockBuffer).dec_ndr_short();
                assertEquals(negativeValue, ndrShort.value);
            }
    
            @Test
            @DisplayName("Should decode large value correctly")
            void testDecodeLargeValue() throws NdrException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top