- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for Equal (0.48 sec)
-
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
// Both null subjects -> equal assertEquals(a, b); assertEquals(a.hashCode(), b.hashCode()); // Mixed null/non-null -> not equal Kerb5Authenticator c = new Kerb5Authenticator(new Subject()); assertNotEquals(a, c); // Same subject instance -> equal Subject shared = new Subject();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
void testHashCodeConsistency() { assertEquals(data1.hashCode(), data2.hashCode()); } @Test @DisplayName("Should not be equal to null") void testNotEqualToNull() { assertNotEquals(data1, null); } @Test @DisplayName("Should not be equal to different type")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
Boolean result2 = (Boolean) constantTimeMethod.invoke(null, password1, password3); assertTrue(result1, "Identical passwords should be equal"); assertFalse(result2, "Different passwords should not be equal"); } /** * Measure the average time for equals operations. */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
* equality. Two {@code NtlmPasswordAuthentication} objects are equal ifRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
SmbTree tree4 = new SmbTree(session, "testShare", "otherService"); // Test equal trees (same share and service) assertEquals(tree1, tree2); // Test non-equal trees (different share) assertNotEquals(tree1, tree3); // Test non-equal trees (different service) assertNotEquals(tree1, tree4); // Test with different object type
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java
int combined = Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED | Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED; assertEquals(0x0003, combined, "Combined signing flags should equal 0x0003"); } } @Nested @DisplayName("Dialect Constants") class DialectConstants { @Test @DisplayName("SMB 2.0.2 dialect should be 0x0202")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/StringUtil.java
} return s1.indexOf(s2) >= 0; } /** * Returns whether two strings are equal. If both are null, returns <code>true</code>. * * @param target1 * the first string * @param target2 * the second string * @return true if the strings are equal, false otherwise */ public static boolean equals(final String target1, final String target2) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 21.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
@Test @DisplayName("Should be equal when MIDs match") void testEquals() { TestServerMessageBlock2 other = new TestServerMessageBlock2(mockConfig); testMessage.setMid(12345L); other.setMid(12345L); assertTrue(testMessage.equals(other)); } @Test @DisplayName("Should not be equal when MIDs differ")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
assertEquals(currentTime - 2000, createTime, "Should return correct create time"); assertTrue(createTime <= lastAccess, "Create time should be before or equal to last access"); assertTrue(lastAccess <= lastModified, "Last access should be before or equal to last modified"); } @Test @DisplayName("setFileTimes should accept valid timestamps")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
byte[] resp = NtlmUtil.getLMv2Response(key, server, client); // Assert: HMAC(16) only assertEquals(16, resp.length); } @Test @DisplayName("getNTLMResponse: overloads produce equal 24-byte response") void testGetNTLMResponse_overloads() throws GeneralSecurityException { // Arrange String password = "password"; byte[] challenge = hex("1122334455667788");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (1)