use of org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParametersFactory in project Main by SpartanRefactoring.
the class MetaTester method runChild.
@Override
@SuppressWarnings("unused")
protected void runChild(final FrameworkMethod __, final RunNotifier n) {
if (hasRan)
return;
final Class<?> newTestClass = new ASTTestClassGenerator(testClass).generate(testClass.getSimpleName() + "_Meta", sourceFile);
final TestSuite suite = new TestSuite(newTestClass);
suite.run(new TestResult());
try {
new BlockJUnit4ClassRunnerWithParametersFactory().createRunnerForTestWithParameters(new TestWithParameters(" ", new TestClass(newTestClass), an.empty.list())).run(n);
} catch (final InitializationError ignore) {
/**/
}
// Uncomment this to run the original test as well
/* super.runChild(method, notifier); */
hasRan = true;
}
Aggregations