Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testConstructorWithNormalKey (0.26 sec)

  1. src/test/java/jcifs/smb1/util/HMACT64Test.java

        private static final byte[] EMPTY_DATA = new byte[0];
    
        static {
            // Initialize long key with predictable data
            Arrays.fill(LONG_TEST_KEY, (byte) 0xAB);
        }
    
        @Test
        void testConstructorWithNormalKey() {
            // Test constructor with a normal length key
            HMACT64 hmac = new HMACT64(TEST_KEY);
            assertNotNull(hmac);
        }
    
        @Test
        void testConstructorWithLongKey() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/HMACT64Test.java

            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
                mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5);
            }
        }
    
        @Test
        void testConstructorWithNormalKey() throws NoSuchAlgorithmException {
            // Test constructor with a normal length key
            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
Back to top