- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 54 for assertNotEquals (0.08 seconds)
-
src/test/java/jcifs/tests/persistent/HandleGuidTest.java
HandleGuid guid3 = new HandleGuid(); assertEquals(guid1, guid2); assertEquals(guid1.hashCode(), guid2.hashCode()); assertNotEquals(guid1, guid3); assertNotEquals(guid1.hashCode(), guid3.hashCode()); assertNotEquals(guid1, null); assertNotEquals(guid1, "not a guid"); } @Test public void testHandleGuidToString() { UUID uuid = UUID.randomUUID();
Created: 2025-12-20 13:44 - Last Modified: 2025-08-21 04:51 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
Smb2LeaseKey key2 = new Smb2LeaseKey(testBytes2); Smb2LeaseKey key3 = new Smb2LeaseKey(testBytes3); assertEquals(key1, key2); assertNotEquals(key1, key3); assertNotEquals(key1, null); assertNotEquals(key1, "not a lease key"); assertEquals(key1, key1); // reflexive } @Test @DisplayName("Should implement hashCode correctly")
Created: 2025-12-20 13:44 - Last Modified: 2025-08-21 00:16 - 6K bytes - Click Count (0) -
src/test/java/jcifs/https/HandlerTest.java
package jcifs.https; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.net.URLStreamHandler;
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 6.6K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/JavaPathTypeTest.java
JavaPathType.Modular bar = JavaPathType.patchModule("bar"); assertEquals(foo1, foo2); assertEquals(foo1.hashCode(), foo2.hashCode()); assertNotEquals(foo1, bar); assertNotEquals(foo1.hashCode(), bar.hashCode()); }
Created: 2025-12-28 03:35 - Last Modified: 2025-11-13 14:20 - 2.9K bytes - Click Count (0) -
src/test/java/jcifs/util/CryptoTest.java
package jcifs.util; 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; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.security.MessageDigest;
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 7.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/MIENameTest.java
MIEName b = new MIEName(new ASN1ObjectIdentifier("1.2.4"), "X"); MIEName c = new MIEName(new ASN1ObjectIdentifier("1.2.3"), null); assertNotEquals(a, b); assertNotEquals(a, c); assertNotEquals(a, new Object()); } } @Test @DisplayName("Mockito presence: no collaborator interactions to verify") void noDependenciesToMock() {
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 8.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
NtlmPasswordAuthentication auth4 = new NtlmPasswordAuthentication("DIFFERENT_DOMAIN", "user", "password"); assertEquals(auth1, auth2); assertNotEquals(auth1, auth3); assertNotEquals(auth1, auth4); assertNotEquals(auth1, new Object()); } // Test hashCode method @Test void testHashCode() {
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 9.7K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/services/RequestImplementationTest.java
import org.apache.maven.api.RemoteRepository; import org.apache.maven.api.Session; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; class RequestImplementationTest { @Test void testArtifactResolverRequestEquality() {Created: 2025-12-28 03:35 - Last Modified: 2025-09-17 10:01 - 4.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
ServerMessageBlock smb3 = new TestServerMessageBlock(); smb3.mid = 200; assertEquals(smb1, smb2); assertNotEquals(smb1, smb3); assertEquals(smb1.hashCode(), smb2.hashCode()); assertNotEquals(smb1.hashCode(), smb3.hashCode()); assertNotEquals(smb1, new Object()); } @Test void testToString() { smb.command = ServerMessageBlock.SMB_COM_ECHO;Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
// Test non-equal trees (different share) assertNotEquals(tree1, tree3); // Test non-equal trees (different service) assertNotEquals(tree1, tree4); // Test with different object type assertNotEquals(tree1, new Object()); // Test with null assertNotEquals(tree1, null); } @Test void testToString() {Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 07:14 - 10.2K bytes - Click Count (0)