/**
* 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();
}
}