use of org.apache.cxf.service.model.ServiceInfo in project cxf by apache.
the class JaxwsServiceBuilderTest method testSOAPBindingRPCOnMethod.
@Test
public void testSOAPBindingRPCOnMethod() throws Exception {
builder.setServiceClass(org.apache.cxf.tools.fortest.withannotation.rpc.HelloWrongAnnotation.class);
ServiceInfo service = builder.createService();
generator.setServiceModel(service);
File file = getOutputFile("rpc_on_method.wsdl");
assertNotNull(output);
generator.generate(file);
assertTrue(output.exists());
InputStream expectedFile = getClass().getResourceAsStream("expected/rpc_on_method.wsdl");
assertWsdlEquals(expectedFile, file);
}
use of org.apache.cxf.service.model.ServiceInfo in project cxf by apache.
the class JaxwsServiceBuilderTest method testDocWrapparBare.
@Test
public void testDocWrapparBare() throws Exception {
builder.setServiceClass(org.apache.hello_world_doc_wrapped_bare.Greeter.class);
builder.setAddress("http://localhost");
ServiceInfo service = builder.createService();
generator.setServiceModel(service);
File file = getOutputFile("doc_wrapped_bare.wsdl");
assertNotNull(output);
generator.generate(file);
assertTrue(output.exists());
InputStream expectedFile = getClass().getResourceAsStream("expected/doc_wrapped_bare.wsdl");
assertWsdlEquals(expectedFile, file);
}
use of org.apache.cxf.service.model.ServiceInfo in project cxf by apache.
the class JaxwsServiceBuilderTest method testDocLitWrappedWithoutWrapperClass.
@Test
public void testDocLitWrappedWithoutWrapperClass() throws Exception {
builder.setServiceClass(org.apache.cxf.tools.fortest.withannotation.doc.HelloWrapped.class);
ServiceInfo service = builder.createService();
generator.setServiceModel(service);
File output = getOutputFile("doc_lit_wrapped_no_wrapperclass.wsdl");
assertNotNull(output);
generator.generate(output);
assertTrue(output.exists());
InputStream expectedFile = getClass().getResourceAsStream("expected/expected_doc_lit_wrapped_no_wrapperclass.wsdl");
assertWsdlEquals(expectedFile, output);
}
use of org.apache.cxf.service.model.ServiceInfo in project cxf by apache.
the class JaxwsServiceBuilderTest method testHolder.
@Test
public void testHolder() throws Exception {
builder.setServiceClass(org.apache.cxf.tools.fortest.holder.HolderService.class);
ServiceInfo service = builder.createService();
generator.setServiceModel(service);
File output = getOutputFile("holder.wsdl");
assertNotNull(output);
generator.generate(output);
assertTrue(output.exists());
InputStream expectedFile = getClass().getResourceAsStream("expected/expected_holder.wsdl");
assertWsdlEquals(expectedFile, output);
}
use of org.apache.cxf.service.model.ServiceInfo in project cxf by apache.
the class JaxwsServiceBuilderTest method testCXF188.
@Test
public void testCXF188() throws Exception {
Class<?> clz = AnnotationUtil.loadClass("org.apache.cxf.tools.fortest.cxf188.Demo", getClass().getClassLoader());
builder.setServiceClass(clz);
ServiceInfo service = builder.createService();
generator.setServiceModel(service);
File output = getOutputFile("cxf188.wsdl");
assertNotNull(output);
generator.generate(output);
assertTrue(output.exists());
InputStream expectedFile = getClass().getResourceAsStream("expected/cxf188.wsdl");
assertWsdlEquals(expectedFile, output);
}
Aggregations