Package ar.com.dgarcia.javaspec.impl.model.impl

Examples of ar.com.dgarcia.javaspec.impl.model.impl.TestSpecDefinition


     * Defines the test code to be run as a test.<br> Every parent beforeEach() is executed prior to this test. Every parent afterEach() is executed after.
     * @param testName The name to identify this test
     * @param aTestCode The code that defines the test
     */
    public void it(String testName, Runnable aTestCode){
        TestSpecDefinition createdSpec = TestSpecDefinition.create(testName, aTestCode, specTree.getSharedContext());
        stack.getCurrentHead().addTest(createdSpec);
    }
View Full Code Here


    /**
     * Declares a pending test that will be listed as ignored
     * @param testName The name to identify this test
     */
    public void it(String testName){
        TestSpecDefinition createdSpec = TestSpecDefinition.createPending(testName, specTree.getSharedContext());
        stack.getCurrentHead().addTest(createdSpec);
    }
View Full Code Here

     * Declares an ignored test. It will not be run, but listed
     * @param testName The name to identify this test
     * @param aTestCode The ignored code of this tests
     */
    public void xit(String testName, Runnable aTestCode){
        TestSpecDefinition createdSpec = TestSpecDefinition.create(testName, aTestCode, specTree.getSharedContext());
        createdSpec.markAsPending();
        stack.getCurrentHead().addTest(createdSpec);
    }
View Full Code Here

TOP

Related Classes of ar.com.dgarcia.javaspec.impl.model.impl.TestSpecDefinition

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.