mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-27 12:45:57 +00:00
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:
parent
2bf76ada44
commit
b1d5cfe08e
@ -475,8 +475,10 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user