Examples of Behaviours


Examples of org.jbehave.core.behaviour.Behaviours

    private BehaviourRunner runner = new BehaviourRunner(System.out);
   
    public void execute() throws MojoExecutionException, MojoFailureException {
        try {
            getLog().debug("Running behaviours "+ behavioursClassName);
            Behaviours behaviours = loadBehaviours(behavioursClassName);
            Class[] classes = behaviours.getBehaviours();
            for (int i = 0; i < classes.length; i++) {
                runner.verifyBehaviour(classes[i]);
            }           
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to verify behaviours", e);
View Full Code Here

Examples of org.jbehave.core.behaviour.Behaviours

    public Behaviours newBehaviours(String behavioursName)
            throws InstantiationException, IllegalAccessException {
        String behavioursNotFound = "The behaviours " + behavioursName
                + " was not found in " + toString(getURLs());
        try {
            Behaviours behavious = (Behaviours) loadClass(behavioursName).newInstance();
            Thread.currentThread().setContextClassLoader(this);
            return behavious;
        } catch (ClassCastException e) {
            throw new RuntimeException(behavioursName + " is not a "
                    + Behaviours.class.getName(), e);
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.