Package fi.jumi.api

Examples of fi.jumi.api.RunVia


@NotThreadSafe
public class RunViaAnnotationDriverFinder implements DriverFinder {

    @Override
    public Driver findTestClassDriver(Class<?> testClass) {
        RunVia annotation = testClass.getAnnotation(RunVia.class);
        if (annotation == null) {
            return DRIVER_NOT_FOUND;
        }
        Class<? extends Driver> driverClass = annotation.value();
        try {
            return driverClass.newInstance();
        } catch (Exception e) {
            throw new RuntimeException("unable to instantiate " + driverClass, e);
        }
View Full Code Here

TOP

Related Classes of fi.jumi.api.RunVia

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.