File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
src/test/java/com/fasterxml/classmate Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Java ClassMate project: licensed under Apache License 2.0
3
3
4
4
Release notes:
5
5
6
- 1.2.0 (16-Sep-2014 )
6
+ 1.2.0 (22-May-2015 )
7
7
8
8
#22: ResolvedTypeWithMembers should expose static fields as well
9
9
(proposed by arikkfir@github)
Original file line number Diff line number Diff line change @@ -70,15 +70,19 @@ public void annotationsToSize() throws NoSuchMethodException {
70
70
Annotation testAnnotation = thisMethod .getAnnotation (Test .class );
71
71
annotations .addAsDefault (testAnnotation );
72
72
73
- assertEquals ("{interface org.junit.Test=@org.junit.Test(timeout=0, expected=class org.junit.Test$None)}" , annotations .toString ());
73
+ // order is unspecified as the internal representation is a HashMap; just assert the constituent parts are present
74
+ String asString = annotations .toString ();
75
+ assertTrue (asString .contains ("{interface org.junit.Test=@org.junit.Test(" ));
76
+ assertTrue (asString .contains ("timeout=0" ));
77
+ assertTrue (asString .contains ("expected=class org.junit.Test$None" ));
74
78
75
79
Annotation markerAnnotation = thisMethod .getAnnotation (Marker .class );
76
80
annotations .addAsDefault (markerAnnotation );
77
81
78
- // order is unspecified as the internal representation is a HashMap; just assert the constituent parts are present
79
- String asString = annotations .toString ();
82
+ asString = annotations .toString ();
80
83
assertTrue (asString .contains ("interface com.fasterxml.classmate.AnnotationsTest$Marker=@com.fasterxml.classmate.AnnotationsTest$Marker()" ));
81
- assertTrue (asString .contains ("interface org.junit.Test=@org.junit.Test(timeout=0, expected=class org.junit.Test$None)" ));
84
+ assertTrue (asString .contains ("interface org.junit.Test=@org.junit.Test" ));
85
+ assertTrue (asString .contains ("timeout=0" ));
86
+ assertTrue (asString .contains ("expected=class org.junit.Test$None" ));
82
87
}
83
-
84
88
}
You can’t perform that action at this time.
0 commit comments