Package org.picketlink.test.tomcat.helpers

Examples of org.picketlink.test.tomcat.helpers.Tomcat5Embedded


public class Tomcat5TestCase extends TestCase {
    boolean enable = false;

    public void testTomcat5() throws Exception {
        if (enable) {
            Tomcat5Embedded emb = new Tomcat5Embedded();
            emb.setHomePath("target/tomcat");
            emb.startServer();
            Thread.sleep(2000);
            assertTrue("Tomcat5 started", emb.hasStarted());

            // emb.createContext("target/../identity-samples/samples/employee/target/employee.war");

            emb.stopServer();
            Thread.sleep(1000);
            assertTrue(emb.hasStopped());
        }
    }
View Full Code Here

TOP

Related Classes of org.picketlink.test.tomcat.helpers.Tomcat5Embedded

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.