File tree 1 file changed +3
-3
lines changed
src/test/java/org/junit/tests/experimental/rules
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
import static java .util .Arrays .asList ;
4
4
import static org .hamcrest .CoreMatchers .any ;
5
5
import static org .hamcrest .CoreMatchers .containsString ;
6
- import static org .hamcrest .CoreMatchers .endsWith ;
7
6
import static org .hamcrest .CoreMatchers .is ;
8
7
import static org .hamcrest .CoreMatchers .nullValue ;
9
8
import static org .hamcrest .CoreMatchers .startsWith ;
@@ -72,8 +71,9 @@ public static Collection<Object[]> testsWithEventMatcher() {
72
71
{ViolateAssumptionAndExpectException .class ,
73
72
hasSingleAssumptionFailure ()},
74
73
{ThrowExpectedAssertionError .class , everyTestRunSuccessful ()},
75
- {DontThrowAssertionErrorButExpectOne .class , hasSingleFailureWithMessage (
76
- endsWith ("Expected test to throw an instance of java.lang.AssertionError" ))},
74
+ {
75
+ DontThrowAssertionErrorButExpectOne .class ,
76
+ hasSingleFailureWithMessage ("Expected test to throw an instance of java.lang.AssertionError" )},
77
77
{
78
78
ThrowUnexpectedAssertionError .class ,
79
79
hasSingleFailureWithMessage (startsWith ("\n Expected: an instance of java.lang.NullPointerException" ))},
You can’t perform that action at this time.
0 commit comments