Search in sources :

Example 1 with SuiteTrimmingFilter

use of com.google.testing.junit.junit4.runner.SuiteTrimmingFilter in project bazel by bazelbuild.

the class JUnit4Runner method applyFilter.

private static Request applyFilter(Request request, Filter filter) throws NoTestsRemainException {
    Runner runner = request.getRunner();
    new SuiteTrimmingFilter(filter).apply(runner);
    return Request.runner(runner);
}
Also used : ErrorReportingRunner(org.junit.internal.runners.ErrorReportingRunner) Runner(org.junit.runner.Runner) SuiteTrimmingFilter(com.google.testing.junit.junit4.runner.SuiteTrimmingFilter)

Aggregations

SuiteTrimmingFilter (com.google.testing.junit.junit4.runner.SuiteTrimmingFilter)1 ErrorReportingRunner (org.junit.internal.runners.ErrorReportingRunner)1 Runner (org.junit.runner.Runner)1