@Test public void supports_JUnit_3_tests() { Driver driver = finder.findTestClassDriver(JUnit3Test.class); assertThat(driver, is(instanceOf(JUnitCompatibilityDriver.class))); }
@Override public Driver findTestClassDriver(Class<?> testClass) { if (isJUnit4AnnotatedTest(testClass) || isJUnit4Test(testClass) || isJUnit3Test(testClass)) { return new JUnitCompatibilityDriver(); } else { return DRIVER_NOT_FOUND; } }
JUnitCompatibilityDriverFinder implements DriverFinder { @Override public Driver findTestClassDriver(Class<?> testClass) { if (isJUnit4AnnotatedTest(testClass) || isJUnit4Test(testClass) || isJUnit3Test(testClass)) { return new JUnitCompatibilityDriver(); } else { return DRIVER_NOT_FOUND; } } }
JUnitCompatibilityDriverFinder implements DriverFinder { @Override public Driver findTestClassDriver(Class<?> testClass) { if (isJUnit4AnnotatedTest(testClass) || isJUnit4Test(testClass) || isJUnit3Test(testClass)) { return new JUnitCompatibilityDriver(); } else { return DRIVER_NOT_FOUND; } }  }
JUnitCompatibilityDriverFinder implements DriverFinder { @Override public Driver findTestClassDriver(Class<?> testClass) { if (isJUnit4AnnotatedTest(testClass) || isJUnit4Test(testClass) || isJUnit3Test(testClass)) { return new JUnitCompatibilityDriver(); } else { return DRIVER_NOT_FOUND; } }  @Override Driver findTestClassDriver(Class<?> testClass); }
JUnitCompatibilityDriverFinder implements DriverFinder { @Override public Driver findTestClassDriver(Class<?> testClass) { if (isJUnit4AnnotatedTest(testClass) || isJUnit4Test(testClass) || isJUnit3Test(testClass)) { return new JUnitCompatibilityDriver(); } else { return DRIVER_NOT_FOUND; } }  @Override Driver findTestClassDriver(Class<?> testClass);  }