Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 228 for 0x71 (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            @Test
            @DisplayName("Should set write flags")
            void testSetWriteFlags() {
                assertDoesNotThrow(() -> request.setWriteFlags(0));
                assertDoesNotThrow(() -> request.setWriteFlags(0x01));
                assertDoesNotThrow(() -> request.setWriteFlags(0xFF));
                assertDoesNotThrow(() -> request.setWriteFlags(Integer.MAX_VALUE));
            }
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

        void isValid_false_inVariousCases() {
            when(cfg.isTraceResourceUsage()).thenReturn(false);
            stubValidTree(10L, true, true);
            SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, new byte[] { 0x01 }, tree, "//x", 0, 0, 0, 0, 0L);
    
            assertTrue(h.isValid());
    
            // Tree id change makes it invalid
            when(tree.getTreeId()).thenReturn(11L);
            assertFalse(h.isValid());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            // Simulate address = 192.168.1.1 (0xC0A80101)
            src[srcIndex + 2] = (byte) 0xC0;
            src[srcIndex + 3] = (byte) 0xA8;
            src[srcIndex + 4] = (byte) 0x01;
            src[srcIndex + 5] = (byte) 0x01;
    
            // Set 'addrEntry' and 'addrIndex' fields in superclass for the response to be stored
            Field addrEntryField = NameServicePacket.class.getDeclaredField("addrEntry");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

                    Arguments.of(0x12345678, new byte[] { 0x78, 0x56, 0x34, 0x12 }),
                    Arguments.of(0xFFFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }),
                    Arguments.of(0x7FFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F }));
        }
    
        @ParameterizedTest
        @MethodSource("int32Provider")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      @Benchmark
      byte hashing(int reps) {
        byte result = 0x01;
        HashMethod hashMethod = this.hashMethod;
        Algorithm algorithm = this.algorithm;
        for (int i = 0; i < reps; i++) {
          result ^= hashMethod.hash(algorithm, testBytes)[0];
        }
        return result;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      @Benchmark
      byte hashing(int reps) {
        byte result = 0x01;
        HashMethod hashMethod = this.hashMethod;
        Algorithm algorithm = this.algorithm;
        for (int i = 0; i < reps; i++) {
          result ^= hashMethod.hash(algorithm, testBytes)[0];
        }
        return result;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseStateTest.java

    class Smb2LeaseStateTest {
    
        @Test
        @DisplayName("Should define correct lease state constants")
        void testLeaseStateConstants() {
            assertEquals(0x00, Smb2LeaseState.SMB2_LEASE_NONE);
            assertEquals(0x01, Smb2LeaseState.SMB2_LEASE_READ_CACHING);
            assertEquals(0x02, Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING);
            assertEquals(0x04, Smb2LeaseState.SMB2_LEASE_WRITE_CACHING);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java

         * .
         */
        @Test
        public void testToBinary() {
            assertThat(BinaryConversionUtil.toBinary(null), nullValue());
            final byte[] b = { 0x00, 0x01 };
            assertThat(BinaryConversionUtil.toBinary(b), is(b));
            assertThat(BinaryConversionUtil.toBinary("hoge"), is("hoge".getBytes()));
        }
    
        /**
         * Test method for
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/HMACT64Test.java

                mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5);
                HMACT64 hmac = new HMACT64(TEST_KEY);
                hmac.engineUpdate((byte) 0x01);
                verify(mockMd5, times(1)).update((byte) 0x01);
            }
        }
    
        @Test
        void testEngineUpdateByteArray() throws NoSuchAlgorithmException {
            // Test engineUpdate(byte[] input, int offset, int len)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

        void byteArrayConstructor_malformedDER_throwsWrapped() {
            // Arrange: Truncated SEQUENCE (0x30 len=2 but only 1 byte of content)
            byte[] malformed = new byte[] { 0x30, 0x02, 0x01 };
    
            // Act + Assert
            PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(malformed, null));
            assertTrue(ex.getMessage().contains("Malformed Kerberos Ticket"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top