/** 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()); }
/** Test method for {@link AutoHashCode#hashCode(Object)}. */ @Test public void testHashCodeObject() { Logger.getLogger(AutoHashCode.class.getName()).setLevel(Level.FINE); AutoHashCode.getInstance().hashCode(testObject); }