use of client.dispatch.null_jaxb.client.HelloRequest in project metro-jax-ws by eclipse-ee4j.
the class DispatchHelloClientTest method testNoParamHelloRequestResponseJAXBNegative.
// should send empty SOAPBody here - no argument returned or perhaps server side exception
// nillable allowed message
public void testNoParamHelloRequestResponseJAXBNegative() throws Throwable {
JAXBContext jc = null;
HelloRequest hello = null;
HelloResponse helloResult = null;
try {
jc = createJAXBContext();
} catch (Exception jbe) {
fail("Problem creating jaxb context");
}
try {
// no hello args
Dispatch dispatch = getDispatchJAXB();
Object result = dispatch.invoke(null);
assertTrue(result == null);
} catch (Exception e) {
assertTrue(e instanceof SOAPFaultException);
System.out.println("NoParamHelloRequestResponseJAXBNegative PASSED");
}
}
Aggregations