Examples of uponOutcome()


Examples of org.jbehave.core.annotations.AfterScenario.uponOutcome()

    private List<BeforeOrAfterStep> stepsHaving(Stage stage, Class<? extends AfterScenario> annotationClass,
            Outcome outcome) {
        List<BeforeOrAfterStep> steps = new ArrayList<BeforeOrAfterStep>();
        for (Method method : annotatatedMethods(annotationClass)) {
            AfterScenario annotation = method.getAnnotation(annotationClass);
            if (outcome.equals(annotation.uponOutcome())) {
                steps.add(createBeforeOrAfterStep(stage, method, outcome));
            }
        }
        return steps;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.