mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
provide a message with explanation why the suite was not run (IDEA-78806)
This commit is contained in:
@@ -117,7 +117,12 @@ public class TestRunnerUtil {
|
||||
}
|
||||
try {
|
||||
//noinspection SSBasedInspection
|
||||
test = (Test)suiteMethod.invoke(null, new Class[0]); // static method
|
||||
test = (Test)suiteMethod.invoke(null, new Class[0]); // static method
|
||||
if (test == null) {
|
||||
return new FailedTestCase(testClass, BaseTestRunner.SUITE_METHODNAME,
|
||||
MessageFormat.format(ourBundle.getString("junit.failed.to.invoke.suite"), new Object[]{"method " + suiteClassName + ".suite() evaluates to null"}),
|
||||
null);
|
||||
}
|
||||
test = new SuiteMethodWrapper(test, suiteClassName);
|
||||
}
|
||||
catch (final InvocationTargetException e) {
|
||||
|
||||
Reference in New Issue
Block a user