Example #1
0
 /** Test that the {@link ReflectionException} is thrown when a method is throwing an exception. */
 @Test(expected = ReflectionException.class)
 public void testHashCodeWithException() {
   AutoHashCode.getInstance().hashCode(new ExceptionComparedClass());
 }
Example #2
0
 /** Test method for {@link AutoHashCode#hashCode(Object)}. */
 @Test
 public void testHashCodeObject() {
   Logger.getLogger(AutoHashCode.class.getName()).setLevel(Level.FINE);
   AutoHashCode.getInstance().hashCode(testObject);
 }