Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 public void testEqualOtherClass() throws Exception {
   MyKey mykey = (MyKey) KeyFactory.create(MyKey.class);
   assertTrue(!mykey.newInstance(5, new int[] {6, 7}, false).equals(new Object()));
 }