@@ -32,35 +32,35 @@ public void testTestsRunner() throws InvocationTargetException, NoSuchMethodExce
3232
3333 @ org .junit .Test
3434 public void testException () throws InvocationTargetException , NoSuchMethodException , InstantiationException , IllegalAccessException {
35- TestResult result = new Tester (TestException .class ).execute ().get (0 );
35+ TestResult result = new Tester (TestException .class ).call ().get (0 );
3636 assertThat (result .ok , is (equalTo (false )));
3737 assertThat (result .exception , allOf (is (instanceOf (RuntimeException .class )), not (is (nullValue ()))));
3838 }
3939
4040 @ org .junit .Test
4141 public void testExpectedException () throws InvocationTargetException , NoSuchMethodException , InstantiationException , IllegalAccessException {
42- TestResult result = new Tester (TestExpectedExcetion .class ).execute ().get (0 );
42+ TestResult result = new Tester (TestExpectedExcetion .class ).call ().get (0 );
4343 assertThat (result .ok , is (equalTo (true )));
4444 assertThat (result .exception , is (nullValue ()));
4545 }
4646
4747 @ org .junit .Test
4848 public void testUnexpectedException () throws InvocationTargetException , NoSuchMethodException , InstantiationException , IllegalAccessException {
49- TestResult result = new Tester (TestUnexpectedExcetion .class ).execute ().get (0 );
49+ TestResult result = new Tester (TestUnexpectedExcetion .class ).call ().get (0 );
5050 assertThat (result .ok , is (equalTo (false )));
5151 assertThat (result .exception , allOf (is (instanceOf (UnsupportedOperationException .class )), not (is (nullValue ()))));
5252 }
5353
5454 @ org .junit .Test
5555 public void testPassed () throws InvocationTargetException , NoSuchMethodException , InstantiationException , IllegalAccessException {
56- TestResult result = new Tester (TestPassed .class ).execute ().get (0 );
56+ TestResult result = new Tester (TestPassed .class ).call ().get (0 );
5757 assertThat (result .ok , is (equalTo (true )));
5858 assertThat (result .exception , is (nullValue ()));
5959 }
6060
6161 @ org .junit .Test
6262 public void testIgnored () throws InvocationTargetException , NoSuchMethodException , InstantiationException , IllegalAccessException {
63- TestResult result = new Tester (TestIgnored .class ).execute ().get (0 );
63+ TestResult result = new Tester (TestIgnored .class ).call ().get (0 );
6464 assertThat (result .ok , is (equalTo (true )));
6565 assertThat (result .exception , is (nullValue ()));
6666 assertThat (result .message , containsString ("ignore" ));
0 commit comments