Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for assertArrayEquals (0.05 sec)

  1. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertNotNull(item);
            assertEquals("test text", item.getText()); // Text is joined with space
            assertArrayEquals(readings, item.getReadings());
            assertArrayEquals(fields, item.getFields());
            assertArrayEquals(tags, item.getTags());
            assertArrayEquals(roles, item.getRoles());
            assertArrayEquals(languages, item.getLanguages());
            assertEquals(1, item.getKinds().length);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

            byte[] compressed = compressionService.compress(testData, CompressionService.COMPRESSION_NONE);
            assertArrayEquals(testData, compressed);
    
            byte[] decompressed = compressionService.decompress(compressed, CompressionService.COMPRESSION_NONE);
            assertArrayEquals(testData, decompressed);
        }
    
        @Test
        @DisplayName("Test LZ77 compression and decompression")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NtlmUtilTest.java

            byte[] actual = NtlmUtil.getNTLMv2Response(key, server, clientChallenge, nanos1601, avPairs);
    
            // Assert
            assertArrayEquals(expected, actual, "Computed response must match manual construction");
            // Also verify client challenge sits at mac(16) + blob offset 16
            assertArrayEquals(clientChallenge, Arrays.copyOfRange(actual, 16 + 16, 16 + 16 + 8));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (1)
  4. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            char[] decrypted1 = storage.decryptCredentials(encrypted1);
            char[] decrypted2 = storage.decryptCredentials(encrypted2);
    
            assertArrayEquals(plaintext, decrypted1);
            assertArrayEquals(plaintext, decrypted2);
    
            // Clean up
            Arrays.fill(plaintext, '\0');
            Arrays.fill(decrypted1, '\0');
            Arrays.fill(decrypted2, '\0');
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.smb;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            assertEquals(2, itemReadings.length);
            assertArrayEquals(new String[] { "reading1" }, itemReadings[0]);
            assertArrayEquals(new String[] { "reading2" }, itemReadings[1]);
    
            // Check fields
            assertArrayEquals(new String[] { "field1", "field2", "field3" }, suggestItem.getFields());
    
            // Check tags
            assertArrayEquals(new String[] { "tag1", "tag2" }, suggestItem.getTags());
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/SecureKeyManagerTest.java

            assertNotNull(rawKey, "Should retrieve raw key");
            assertArrayEquals(testKey, rawKey, "Raw key should match");
    
            // Verify we get a copy, not the original
            rawKey[0] = (byte) ~rawKey[0];
            byte[] rawKey2 = keyManager.getRawKey(sessionId);
            assertArrayEquals(testKey, rawKey2, "Should still match original");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.internal.smb2.lease;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

    package jcifs.smb.compression;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.util.Properties;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.smb;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNotEquals;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
Back to top