Package org.apache.cactus.internal

Examples of org.apache.cactus.internal.EJBTestResult


     * The "main" method of the test-case.
     * @throws Exception in case an error occurs
     */
    public void doTest() throws Exception
    {
        EJBTestResult result = null;

        try
        {

            // Create an instance of the test class
            AbstractCactusTestCase testInstance =
                getTestClassInstance(getTestClassName(), getTestMethodName());
           
            LOGGER.debug("CLASS NAME " + getTestClassName());
            LOGGER.debug("METHOD NAME " + getTestMethodName());
            // Set its fields (implicit objects)
            setTestCaseFields(testInstance);

            // Call it's method corresponding to the current test case
            testInstance.runBareServer();

            // Return an instance of <code>WebTestResult</code> with a
            // positive result.
            result = new EJBTestResult();

        }
        catch (Throwable e)
        {
            // An error occurred, return an instance of
            // <code>WebTestResult</code> with an exception.
            result = new EJBTestResult(e);
        }
        LOGGER.info("***********************************************");
        LOGGER.info("Test result : [" + result + "]");
        LOGGER.info("***********************************************");
    }
View Full Code Here

TOP

Related Classes of org.apache.cactus.internal.EJBTestResult

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.