Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for deadbeef (0.03 sec)

  1. src/test/java/jcifs/smb/SecurityBlobTest.java

            assertSame(data, blob.get(), "get() should expose the same array reference passed in");
            assertEquals(data.length, blob.length(), "length() should match underlying array length");
            assertEquals("deadbeef", blob.toString(), "toString() should reflect underlying content");
            assertEquals(data.hashCode(), blob.hashCode(), "hashCode should equal the array's hashCode");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java

                    // An error that maps via DOS mapping
                    Arguments.of(0x00000002, SmbException.getMessageByCode(0x00000002)),
                    // Unknown code → hex string (uppercase)
                    Arguments.of(0xDEADBEEF, "0xDEADBEEF"));
        }
    
        @ParameterizedTest
        @MethodSource("errorCodes")
        void constructorInitialisesMessageAndStatus(int code, String expectedMsg) {
            SmbAuthException e = new SmbAuthException(code);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            buf.enc_ndr_short(0); // context_id
            buf.enc_ndr_short(0); // cancel_count
            buf.enc_ndr_long(0xDEADBEEF); // fault status
    
            // Decode
            buf.setIndex(0);
            TestMessage m = new TestMessage();
            m.decode(buf);
    
            assertEquals(3, m.ptype);
            assertEquals(0xDEADBEEF, m.result);
            assertNotNull(m.getResult());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

        }
    
        @Test
        @DisplayName("Unknown DOS error code yields empty Optional")
        void testUnknownCode() {
            Optional<Integer> noMatch = findNtStatus(0xdeadbeef);
            assertFalse(noMatch.isPresent(), "Mapping for unknown code should be absent");
        }
    
        @Test
        @DisplayName("Mocked consumer receives correct NTSTATUS value")
        void testConsumerInteraction() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

      int size;
    
      String data;
    
      @BeforeExperiment
      public void setUp() {
        // precalculate some random strings of ascii characters.
        StringBuilder sb = new StringBuilder();
        Random random = new Random(0xdeadbeef); // for unpredictable but reproducible behavior
        sb.ensureCapacity(size);
        for (int k = 0; k < size; k++) {
          // [9-127) includes all ascii non-control characters
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

      Charset charset;
      ByteSource data;
    
      @BeforeExperiment
      public void setUp() {
        charset = Charset.forName(charsetName);
        StringBuilder sb = new StringBuilder();
        Random random = new Random(0xdeadbeef); // for unpredictable but reproducible behavior
        sb.ensureCapacity(size);
        for (int k = 0; k < size; k++) {
          // [9-127) includes all ascii non-control characters
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            val = ndrBuffer.dec_ndr_short();
            assertEquals(0x1234, val);
            assertEquals(4, ndrBuffer.getIndex());
        }
    
        @Test
        void testEncDecNdrLong() {
            ndrBuffer.enc_ndr_long(0xDEADBEEF);
            assertEquals(4, ndrBuffer.getIndex()); // Aligned to 4, then advanced by 4
            assertEquals(4, ndrBuffer.getLength());
            assertEquals((byte) 0xEF, buffer[0]); // Little-endian
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/IntsTest.java

        List<Integer> one = Arrays.asList((int) 1);
        assertThat(Ints.toArray(one)).isEqualTo(ARRAY1);
    
        int[] array = {(int) 0, (int) 1, (int) 0xdeadbeef};
    
        List<Integer> three = Arrays.asList((int) 0, (int) 1, (int) 0xdeadbeef);
        assertThat(Ints.toArray(three)).isEqualTo(array);
    
        assertThat(Ints.toArray(Ints.asList(array))).isEqualTo(array);
      }
    
      public void testToArray_threadSafe() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/ServerResponseValidatorTest.java

        }
    
        @Test
        public void testInvalidProtocolId() throws Exception {
            assertThrows(SmbException.class, () -> {
                validator.validateSmbHeader(0xDEADBEEF, 64, 0x00);
            });
        }
    
        @Test
        public void testInvalidSmb1HeaderSize() throws Exception {
            assertThrows(SmbException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

            }
            request.setFileId(newFileId);
            request.setFileInfoClass((byte) 0x0A); // This will set info type to SMB2_0_INFO_FILE
            request.setAdditionalInformation(0xDEADBEEF);
            request.setQueryFlags(0xCAFEBABE);
    
            // Add input buffer
            Encodable mockInputBuffer = mock(Encodable.class);
            when(mockInputBuffer.size()).thenReturn(64);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
Back to top