You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2010/09/21 17:02:03 UTC
svn commit: r999453 -
/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
Author: mbenson
Date: Tue Sep 21 15:02:03 2010
New Revision: 999453
URL: http://svn.apache.org/viewvc?rev=999453&view=rev
Log:
and add one last, even more complex, test
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java?rev=999453&r1=999452&r2=999453&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java Tue Sep 21 15:02:03 2010
@@ -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)