use of org.apache.cxf.jaxb_element_test.JaxbElementTest in project cxf by apache.
the class ClientServerMiscTest method testMinOccursAndNillableJAXBElement.
@Test
public void testMinOccursAndNillableJAXBElement() throws Exception {
JaxbElementTest_Service service = new JaxbElementTest_Service();
assertNotNull(service);
JaxbElementTest port = service.getPort(JaxbElementTest.class);
updateAddressPort(port, PORT);
try {
String response = port.newOperation("hello");
assertNotNull(response);
assertEquals("in=hello", response);
response = port.newOperation(null);
assertNotNull(response);
assertEquals("in=null", response);
} catch (UndeclaredThrowableException ex) {
throw (Exception) ex.getCause();
}
}
Aggregations