use of org.openehealth.ipf.commons.ihe.ws.JaxWsRequestClientFactory in project ipf by oehf.
the class CxfFeatureTest method testFeatureEndpointWithoutPolicy.
@Test
public void testFeatureEndpointWithoutPolicy() {
JaxWsClientFactory<? extends XdsAuditDataset> clientFactory = new JaxWsRequestClientFactory<>(ITI_42.getWsTransactionConfiguration(), "http://localhost:" + getPort() + "/xds-iti42", null, null, null, null, null, null, null, null);
var client = (Iti42PortType) clientFactory.getClient();
try {
client.documentRegistryRegisterDocumentSetB(new SubmitObjectsRequest());
fail("This line must be not reachable");
} catch (SOAPFaultException ex) {
assertTrue(ex.getMessage().contains("These policy alternatives can not be satisfied"));
}
}
Aggregations