and add one last, even more complex, test

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@999453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Matthew Jason Benson 2010-09-21 15:02:03 +00:00
parent 2bf76ada44
commit b1d5cfe08e
1 changed files with 4 additions and 2 deletions

View File

@ -475,8 +475,10 @@ public class AnnotationUtilsTest {
public void testHashCode() throws Exception {
final Test test = getClass().getDeclaredMethod("testHashCode").getAnnotation(Test.class);
assertEquals(test.hashCode(), AnnotationUtils.hashCode(test));
final TestAnnotation testAnnotation = field1.getAnnotation(TestAnnotation.class);
assertEquals(testAnnotation.hashCode(), AnnotationUtils.hashCode(testAnnotation));
final TestAnnotation testAnnotation1 = field1.getAnnotation(TestAnnotation.class);
assertEquals(testAnnotation1.hashCode(), AnnotationUtils.hashCode(testAnnotation1));
final TestAnnotation testAnnotation3 = field3.getAnnotation(TestAnnotation.class);
assertEquals(testAnnotation3.hashCode(), AnnotationUtils.hashCode(testAnnotation3));
}
@Test(timeout = 666000)