@@ -32,11 +32,11 @@ public void testMatchesACollectionThatContainsAnElementMatchingTheGivenMatcher()
3232
3333 public void testDoesNotMatchCollectionThatDoesntContainAnElementMatchingTheGivenMatcher () {
3434 final Matcher <Iterable <? super String >> matcher1 = hasItem (mismatchable ("a" ));
35- assertMismatchDescription ("mismatched: b, mismatched: c" , matcher1 , asList ( "b" , "c" ));
36-
35+ assertMismatchDescription ("was a collection that did not contain mismatchable: a -- mismatches were: [ mismatched: b, mismatched: c]" ,
36+ matcher1 , asList ( "b" , "c" ));
3737
3838 final Matcher <Iterable <? super String >> matcher2 = hasItem (equalTo ("a" ));
39- assertMismatchDescription ("" , matcher2 , new ArrayList <String >());
39+ assertMismatchDescription ("was an empty collection " , matcher2 , new ArrayList <String >());
4040 }
4141
4242 public void testDoesNotMatchNull () {
@@ -84,9 +84,10 @@ public void testMatchesAllItemsInCollection() {
8484 }
8585
8686 public void testReportsMismatchWithAReadableDescription () {
87- final Matcher <Iterable <Integer >> matcher = hasItems (1 , 4 );
87+ final Matcher <Iterable <Integer >> matcher = hasItems (3 , 4 );
8888
89- assertMismatchDescription ("a collection containing <4> was <1>, was <2>, was <3>" , matcher , asList (1 , 2 , 3 ));
89+ assertMismatchDescription ("a collection containing <4> was a collection that did not contain <4> -- mismatches were: [was <1>, was <2>, was <3>]" ,
90+ matcher , asList (1 , 2 , 3 ));
9091 }
9192
9293 private static Matcher <? super String > mismatchable (final String string ) {
0 commit comments