use of org.junit.internal.runners.JUnit38ClassRunner in project junit4 by junit-team.
the class JUnit38ClassRunnerTest method getDescriptionWithAnnotation.
@Test
public void getDescriptionWithAnnotation() {
JUnit38ClassRunner runner = new JUnit38ClassRunner(JUnit3ClassWithAnnotatedMethod.class);
assertAnnotationFiltering(runner);
}
use of org.junit.internal.runners.JUnit38ClassRunner in project junit4 by junit-team.
the class JUnit38ClassRunnerTest method getDescriptionWithAnnotationInSuper.
@Test
public void getDescriptionWithAnnotationInSuper() {
JUnit38ClassRunner runner = new JUnit38ClassRunner(DerivedAnnotatedMethod.class);
assertAnnotationFiltering(runner);
}
use of org.junit.internal.runners.JUnit38ClassRunner in project junit4 by junit-team.
the class MaxStarterTest method filterSingleMethodFromOldTestClass.
@Test
public void filterSingleMethodFromOldTestClass() throws Exception {
final Description method = Description.createTestDescription(TwoOldTests.class, "testOne");
Filter filter = Filter.matchMethodDescription(method);
JUnit38ClassRunner child = new JUnit38ClassRunner(TwoOldTests.class);
child.filter(filter);
assertEquals(1, child.testCount());
}
use of org.junit.internal.runners.JUnit38ClassRunner in project kotlin by JetBrains.
the class JUnit3RunnerWithInners method filter.
@Override
public void filter(Filter filter) throws NoTestsRemainException {
delegateRunner = new JUnit38ClassRunner(klass);
delegateRunner.filter(filter);
}
Aggregations