summaryrefslogtreecommitdiff
blob: 92b4cb2bcfc31b1bab7fc534f5aa5e98c54c5a02 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/test/java/jnr/ffi/ObjectReferenceManagerTest.java
+++ b/src/test/java/jnr/ffi/ObjectReferenceManagerTest.java
@@ -35,7 +35,7 @@
         Pointer ptr = referenceManager.add(bar);
         Pointer ptr2 = referenceManager.add(bar2);
         assertNotSame(ptr, ptr2);
-        assertNotEquals(ptr, ptr2);
+        assertTrue(!ptr.equals(ptr2));
         assertSame(bar, referenceManager.get(ptr));
         assertSame(bar2, referenceManager.get(ptr2));
     }