- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 660 for Different (0.28 seconds)
-
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
// Then assertFalse(Arrays.equals(decKey300, decKey311), "Decryption keys should be different for different dialects"); } @Test @DisplayName("Should derive different keys for different purposes with same dialect") void testDeriveKeys_DifferentPurposes() { // Given int dialect = Smb2Constants.SMB2_DIALECT_0311;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/HMACT64Test.java
// Results should be different boolean different = false; for (int i = 0; i < result1.length; i++) { if (result1[i] != result2[i]) { different = true; break; } } assertEquals(true, different, "Different keys should produce different HMAC values"); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java
CharMappingItem item4 = new CharMappingItem(4L, inputs1, "different"); // Same inputs and output should have same hash code assertEquals(item1.hashCode(), item2.hashCode()); // Different inputs should have different hash code assertNotSame(item1.hashCode(), item3.hashCode()); // Same inputs but different output should have different hash code
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16K bytes - Click Count (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
byte[] encrypted2 = storage.encryptCredentials(plaintext.clone()); // Should produce different ciphertexts due to random IV assertFalse(Arrays.equals(encrypted1, encrypted2), "Different encryptions should produce different ciphertexts"); // But both should decrypt to same plaintext char[] decrypted1 = storage.decryptCredentials(encrypted1);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java
ProtwordsItem item2 = new ProtwordsItem(2, "word"); ProtwordsItem item3 = new ProtwordsItem(1, "different"); // Same input should have same hashCode regardless of id assertEquals(item1.hashCode(), item2.hashCode()); // Different input should have different hashCode assertNotSame(item1.hashCode(), item3.hashCode()); // Consistent hashCode
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
assertEquals(32, derived3.length, "Derived key should have correct length"); assertFalse(Arrays.equals(derived1, derived2), "Different labels should produce different keys"); assertFalse(Arrays.equals(derived1, derived3), "Different contexts should produce different keys"); } @Test public void testStoreNullKey() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/PrunedTagTest.java
assertEquals(tag1.hashCode(), tag2.hashCode()); // Different tag PrunedTag tagDifferentTag = new PrunedTag("span"); tagDifferentTag.setId("test"); tagDifferentTag.setCss("highlight"); tagDifferentTag.setAttr("data-value", "123"); assertFalse(tag1.equals(tagDifferentTag)); // Different id PrunedTag tagDifferentId = new PrunedTag("div");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 21.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
// Assert assertArrayEquals(expected, actual, "NT hash must match known test vector"); } @Test @DisplayName("getNTHash: verify different passwords produce different hashes") void testGetNTHash_differentPasswords() { // Arrange String password1 = "password"; String password2 = "Password"; // ActCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12K bytes - Click Count (1) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
try { // Time comparison between different length passwords long timeDiffLength = measureEqualsTime(auth1, auth2, TIMING_ITERATIONS); // Create same length passwords for comparison char[] password3 = "short".toCharArray(); char[] password4 = "shore".toCharArray(); // Same length, different contentCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java
StopwordsItem item4 = new StopwordsItem(1, "different"); // Same input should have same hashCode regardless of id assertEquals(item1.hashCode(), item2.hashCode()); assertEquals(item1.hashCode(), item3.hashCode()); // Different input should have different hashCode assertNotSame(item1.hashCode(), item4.hashCode()); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.4K bytes - Click Count (0)