Package org.jbehave.core.annotations

Examples of org.jbehave.core.annotations.AfterScenario


    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

Related Classes of org.jbehave.core.annotations.AfterScenario

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.