Skip to content

Commit 152a1a2

Browse files
committed
Prepare for 1.2.0 release
1 parent da49f20 commit 152a1a2

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Java ClassMate project: licensed under Apache License 2.0
33

44
Release notes:
55

6-
1.2.0 (16-Sep-2014)
6+
1.2.0 (22-May-2015)
77

88
#22: ResolvedTypeWithMembers should expose static fields as well
99
(proposed by arikkfir@github)

src/test/java/com/fasterxml/classmate/AnnotationsTest.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,19 @@ public void annotationsToSize() throws NoSuchMethodException {
7070
Annotation testAnnotation = thisMethod.getAnnotation(Test.class);
7171
annotations.addAsDefault(testAnnotation);
7272

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"));
7478

7579
Annotation markerAnnotation = thisMethod.getAnnotation(Marker.class);
7680
annotations.addAsDefault(markerAnnotation);
7781

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();
8083
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"));
8287
}
83-
8488
}

0 commit comments

Comments
 (0)