Package fi.jumi.api.drivers

Examples of fi.jumi.api.drivers.Driver


        finder = new JUnitCompatibilityDriverFinder();
    }

    @Test
    public void supports_JUnit_3_tests() {
        Driver driver = finder.findTestClassDriver(JUnit3Test.class);

        assertThat(driver, is(instanceOf(JUnitCompatibilityDriver.class)));
    }
View Full Code Here


        assertThat(driver, is(instanceOf(JUnitCompatibilityDriver.class)));
    }

    @Test
    public void supports_JUnit_4_tests() {
        Driver driver = finder.findTestClassDriver(JUnit4Test.class);

        assertThat(driver, is(instanceOf(JUnitCompatibilityDriver.class)));
    }
View Full Code Here

        assertThat(driver, is(instanceOf(JUnitCompatibilityDriver.class)));
    }

    @Test
    public void supports_RunWith_annotated_JUnit_4_tests() {
        Driver driver = finder.findTestClassDriver(JUnit4AnnotatedTest.class);

        assertThat(driver, is(instanceOf(JUnitCompatibilityDriver.class)));
    }
View Full Code Here

        assertThat(driver, is(instanceOf(JUnitCompatibilityDriver.class)));
    }

    @Test
    public void does_not_support_non_JUnit_tests() {
        Driver driver = finder.findTestClassDriver(NotJUnitTest.class);

        assertThat(driver, Matchers.is(DriverFinder.DRIVER_NOT_FOUND));
    }
View Full Code Here

    }

    @Override
    public Driver findTestClassDriver(Class<?> testClass) {
        for (DriverFinder finder : finders) {
            Driver driver = finder.findTestClassDriver(testClass);
            if (driver != DRIVER_NOT_FOUND) {
                return driver;
            }
        }
        throw new IllegalArgumentException(testClass + " was not recognized as a compatible test class; tried " + Arrays.toString(finders));
View Full Code Here

TOP

Related Classes of fi.jumi.api.drivers.Driver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.