public void testSimple() throws Exception { MyKey mykey = (MyKey) KeyFactory.create(MyKey.class); assertTrue( mykey.newInstance(5, new int[] {6, 7}, false).hashCode() == mykey.newInstance(5, new int[] {6, 7}, false).hashCode()); }
public void testEqualOtherClass() throws Exception { MyKey mykey = (MyKey) KeyFactory.create(MyKey.class); assertTrue(!mykey.newInstance(5, new int[] {6, 7}, false).equals(new Object())); }