Package org.codehaus.cargo.container

Examples of org.codehaus.cargo.container.InstalledLocalContainer


    /**
     * Test cultureinfo generation.
     */
    public void testCultureinfo() throws Exception {

        InstalledLocalContainer webapp = getContainer("target/wars/legstar-test-cultureinfo.war");
        webapp.start();
        try {

            Xsd2Cob api = new Xsd2Cob();
            api.getModel()
                    .setInputXsdUri(
                            new URI(
                                    "http://localhost:8080/legstar-test-cultureinfo/getinfo?wsdl"));
            XsdToCobolStringResult results = api.translate();

            check("cultureinfo", "xsd", results.getCobolXsd());
            check("cultureinfo", "cpy", results.getCobolStructure());
        } finally {
            webapp.stop();
        }

    }
View Full Code Here


    /**
     * Test jvmquery generation.
     */
    public void testJVMQuery() throws Exception {

        InstalledLocalContainer webapp = getContainer("target/wars/legstar-test-jvmquery.war");
        webapp.start();
        try {
            Xsd2CobModel model = new Xsd2CobModel();
            model.setInputXsdUri(new URI(
                    "http://localhost:8080/legstar-test-jvmquery/queryJvm?wsdl"));
            /* We switch namespace to avoid conflict with jvmquery pojo. */
            model.setNewTargetNamespace("http://jvmquery.ws.cases.test.xsdc.legstar.com/");

            Xsd2Cob api = new Xsd2Cob(model);
            XsdToCobolStringResult results = api.translate();

            check("jvmquery-ws", "xsd", results.getCobolXsd());
            check("jvmquery-ws", "cpy", results.getCobolStructure());
        } finally {
            webapp.stop();
        }

    }
View Full Code Here

    protected InstalledLocalContainer getContainer(final String warLocation) {
        Deployable war = new WAR(warLocation);
        LocalConfiguration configuration = new Tomcat6xStandaloneLocalConfiguration(
                "target/tomcat6x");
        configuration.addDeployable(war);
        InstalledLocalContainer webapp = new Tomcat6xInstalledLocalContainer(
                configuration);
        webapp.setHome(System.getenv("CATALINA_HOME"));
        webapp.setOutput("target/cargo.log");
        return webapp;
    }
View Full Code Here

TOP

Related Classes of org.codehaus.cargo.container.InstalledLocalContainer

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.