Package net.jsunit

Examples of net.jsunit.StandaloneTest


public class TestRunnerServlet extends JsUnitServlet {

    protected synchronized void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        Utility.log("TestRunnerServlet: Received request to run standalone test...");
        StandaloneTest test = createTest();
        TestResult result = TestRunner.run(test);
        writeResponse(response, result);
        Utility.log("TestRunnerServlet: ...Done");
    }
View Full Code Here


        out.write(("<result>" + resultString + "</result>").getBytes());
        out.close();
    }

    protected StandaloneTest createTest() {
        StandaloneTest standaloneTest = new StandaloneTest("testStandaloneRun");
        standaloneTest.setServer(server);
        return standaloneTest;
    }
View Full Code Here

TOP

Related Classes of net.jsunit.StandaloneTest

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.