Package org.jbehave.core.behaviour

Examples of org.jbehave.core.behaviour.BehaviourClass


    private static TestSuite createBehavioursTestSuite(Behaviours behaviours) {
        TestSuite suite = new TestSuite(behaviours.toString());        
        Class[] behaviourClasses = behaviours.getBehaviours();
        for ( int i = 0; i < behaviourClasses.length; i++ ){
            suite.addTest(createBehaviourTestSuite(new BehaviourClass(behaviourClasses[i])));
        }
        return suite;
    }
View Full Code Here


    }

    public void verifyBehaviour(Class classToVerify, String methodName) {
        PlainTextListener textListener = new PlainTextListener(new PrintWriter(writer), new Timer());
        BehaviourVerifier verifier = new BehaviourVerifier(textListener);
        verifier.verifyBehaviour(new BehaviourClass(classToVerify, methodName, verifier));
        textListener.printReport();
        succeeded = succeeded && !textListener.hasBehaviourFailures();
    }
View Full Code Here

TOP

Related Classes of org.jbehave.core.behaviour.BehaviourClass

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.