@@ -25,24 +25,24 @@ public final class IsEqualTest {
2525 @ Test public void
2626 comparesObjectsUsingEqualsMethod () {
2727 final Matcher <String > matcher1 = equalTo ("hi" );
28- assertMatches ("didn't match" , matcher1 , "hi" );
29- assertDoesNotMatch ("matched unexpectedly" , matcher1 , "bye" );
30- assertDoesNotMatch ("matched unexpectedly" , matcher1 , null );
28+ assertMatches (matcher1 , "hi" );
29+ assertDoesNotMatch (matcher1 , "bye" );
30+ assertDoesNotMatch (matcher1 , null );
3131
3232 final Matcher <Integer > matcher2 = equalTo (1 );
33- assertMatches ("didn't match" , matcher2 , 1 );
34- assertDoesNotMatch ("matched unexpectedly" , matcher2 , 2 );
35- assertDoesNotMatch ("matched unexpectedly" , matcher2 , null );
33+ assertMatches (matcher2 , 1 );
34+ assertDoesNotMatch (matcher2 , 2 );
35+ assertDoesNotMatch (matcher2 , null );
3636 }
3737
3838 @ Test public void
3939 canCompareNullValues () {
4040 final Matcher <Object > matcher = equalTo (null );
4141
42- assertMatches ("didn't match" , matcher , null );
43- assertDoesNotMatch ("matched unexpectedly" , matcher , 2 );
44- assertDoesNotMatch ("matched unexpectedly" , matcher , "hi" );
45- assertDoesNotMatch ("matched unexpectedly" , matcher , new String [] {"a" , "b" });
42+ assertMatches (matcher , null );
43+ assertDoesNotMatch (matcher , 2 );
44+ assertDoesNotMatch (matcher , "hi" );
45+ assertDoesNotMatch (matcher , new String [] {"a" , "b" });
4646 }
4747
4848 @ Test public void
@@ -61,8 +61,8 @@ public boolean equals(Object obj) {
6161 };
6262
6363 final Matcher <Object > matcher = equalTo (null );
64- assertMatches ("didn't match" , matcher , alwaysEqual );
65- assertDoesNotMatch ("matched unexpectedly" , matcher , neverEqual );
64+ assertMatches (matcher , alwaysEqual );
65+ assertDoesNotMatch (matcher , neverEqual );
6666 }
6767
6868 @ Test public void
@@ -73,11 +73,11 @@ public boolean equals(Object obj) {
7373 String [] s4 = {"a" , "b" , "c" , "d" };
7474
7575 final Matcher <String []> matcher = equalTo (s1 );
76- assertMatches ("didn't match" , matcher , s1 );
77- assertMatches ("didn't match" , matcher , s2 );
78- assertDoesNotMatch ("matched unexpectedly" , matcher , s3 );
79- assertDoesNotMatch ("matched unexpectedly" , matcher , s4 );
80- assertDoesNotMatch ("matched unexpectedly" , matcher , null );
76+ assertMatches (matcher , s1 );
77+ assertMatches (matcher , s2 );
78+ assertDoesNotMatch (matcher , s3 );
79+ assertDoesNotMatch (matcher , s4 );
80+ assertDoesNotMatch (matcher , null );
8181 }
8282
8383 @ Test public void
@@ -88,11 +88,11 @@ public boolean equals(Object obj) {
8888 int [] i4 = new int []{1 , 2 , 3 , 4 };
8989
9090 final Matcher <int []> matcher = equalTo (i1 );
91- assertMatches ("didn't match" , matcher , i1 );
92- assertMatches ("didn't match" , matcher , i2 );
93- assertDoesNotMatch ("matched unexpectedly" , matcher , i3 );
94- assertDoesNotMatch ("matched unexpectedly" , matcher , i4 );
95- assertDoesNotMatch ("matched unexpectedly" , matcher , null );
91+ assertMatches (matcher , i1 );
92+ assertMatches (matcher , i2 );
93+ assertDoesNotMatch (matcher , i3 );
94+ assertDoesNotMatch (matcher , i4 );
95+ assertDoesNotMatch (matcher , null );
9696 }
9797
9898 @ Test public void
@@ -103,11 +103,11 @@ public boolean equals(Object obj) {
103103 int [][] i4 = new int [][]{{1 , 2 , 3 , 4 }, {3 , 4 }};
104104
105105 final Matcher <int [][]> matcher = equalTo (i1 );
106- assertMatches ("didn't match" , matcher , i1 );
107- assertMatches ("didn't match" , matcher , i2 );
108- assertDoesNotMatch ("matched unexpectedly" , matcher , i3 );
109- assertDoesNotMatch ("matched unexpectedly" , matcher , i4 );
110- assertDoesNotMatch ("matched unexpectedly" , matcher , null );
106+ assertMatches (matcher , i1 );
107+ assertMatches (matcher , i2 );
108+ assertDoesNotMatch (matcher , i3 );
109+ assertDoesNotMatch (matcher , i4 );
110+ assertDoesNotMatch (matcher , null );
111111 }
112112
113113 @ Test public void
0 commit comments