use of org.apache.hello_world_soap12_http.Greeter in project cxf by apache.
the class Soap12ClientServerTest method testPingMeFault.
@Test
public void testPingMeFault() throws Exception {
Greeter greeter = getGreeter();
try {
greeter.pingMe();
fail("Should throw Exception!");
} catch (PingMeFault ex) {
FaultDetail detail = ex.getFaultInfo();
assertEquals((short) 2, detail.getMajor());
assertEquals((short) 1, detail.getMinor());
assertEquals("PingMeFault raised by server", ex.getMessage());
StackTraceElement[] element = ex.getStackTrace();
assertEquals("org.apache.cxf.systest.soapfault.details.GreeterImpl12", element[0].getClassName());
}
}
Aggregations