use of org.apache.hello_world_soap_http.types.NoSuchCodeLit in project cxf by apache.
the class AbstractGreeterImpl method testDocLitFault.
public void testDocLitFault(String faultType) throws BadRecordLitFault, NoSuchCodeLitFault {
verifyMAPs();
if (faultType.equals(BadRecordLitFault.class.getSimpleName())) {
throw new BadRecordLitFault("TestBadRecordLit", "BadRecordLitFault");
}
if (faultType.equals(NoSuchCodeLitFault.class.getSimpleName())) {
ErrorCode ec = new ErrorCode();
ec.setMajor((short) 1);
ec.setMinor((short) 1);
NoSuchCodeLit nscl = new NoSuchCodeLit();
nscl.setCode(ec);
throw new NoSuchCodeLitFault("TestNoSuchCodeLit", nscl);
}
}
use of org.apache.hello_world_soap_http.types.NoSuchCodeLit in project cxf by apache.
the class BaseGreeterImpl method testDocLitFault.
public void testDocLitFault(String faultType) throws BadRecordLitFault, NoSuchCodeLitFault {
LOG.info("Invoking testDocLitFault");
invocationCount++;
if (faultType.equals(BadRecordLitFault.class.getSimpleName())) {
throw new BadRecordLitFault("TestBadRecordLit", "BadRecordLitFault");
}
if (faultType.equals(NoSuchCodeLitFault.class.getSimpleName())) {
ErrorCode ec = new ErrorCode();
ec.setMajor((short) 1);
ec.setMinor((short) 1);
NoSuchCodeLit nscl = new NoSuchCodeLit();
nscl.setCode(ec);
throw new NoSuchCodeLitFault("TestNoSuchCodeLit", nscl);
}
throw new RuntimeException("Unknown source", new IOException("dummy io exception"));
}
use of org.apache.hello_world_soap_http.types.NoSuchCodeLit in project cxf by apache.
the class NotAnnotatedGreeterImpl method testDocLitFault.
public void testDocLitFault(String faultType) throws BadRecordLitFault, NoSuchCodeLitFault {
ErrorCode ec = new ErrorCode();
ec.setMajor((short) 1);
ec.setMinor((short) 1);
NoSuchCodeLit nscl = new NoSuchCodeLit();
nscl.setCode(ec);
throw new NoSuchCodeLitFault("TestException", nscl);
}
Aggregations