use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties in project camel by apache.
the class ProducerParamsBasicTest method testNoAction.
@Test
public void testNoAction() throws Exception {
template.requestBody("direct:noAction", xmlBody);
assertNotNull(sender.getMessageContext());
// WSA is not supported, if there is no ws action
Assertions.assertThat(sender.getMessageContext()).isNotNull();
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties((SoapMessage) sender.getMessageContext().getRequest());
Assertions.assertThat(wsaProperties).isNull();
}
use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties in project camel by apache.
the class ProducerParamsBasicTest method testFaultTo.
@Test
public void testFaultTo() throws Exception {
template.requestBody("direct:faultTo", xmlBody);
assertNotNull(sender.getMessageContext());
// check default actions
Assertions.assertThat(sender.getMessageContext()).isNotNull();
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties((SoapMessage) sender.getMessageContext().getRequest());
Assertions.assertThat(wsaProperties).isNotNull();
Assertions.assertThat(wsaProperties.getReplyTo().getAddress()).isEqualTo(anonymousUri);
Assertions.assertThat(wsaProperties.getFaultTo().getAddress()).isEqualTo(new URI("http://fault.to"));
}
use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties in project camel by apache.
the class ProducerParamsBasicTest method testReplyTo.
@Test
public void testReplyTo() throws Exception {
template.requestBody("direct:replyTo", xmlBody);
assertNotNull(sender.getMessageContext());
// check default actions
Assertions.assertThat(sender.getMessageContext()).isNotNull();
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties((SoapMessage) sender.getMessageContext().getRequest());
Assertions.assertThat(wsaProperties).isNotNull();
Assertions.assertThat(wsaProperties.getReplyTo().getAddress()).isEqualTo(new URI("mailto://replyTo@chocolatejar.eu"));
Assertions.assertThat(wsaProperties.getFaultTo().getAddress()).isEqualTo(new URI("http://fault.to"));
}
use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties in project camel by apache.
the class ProducerParamsBasicTest method testDefaultReplyTo.
@Test
public void testDefaultReplyTo() throws Exception {
template.requestBody("direct:defaultOk", xmlBody);
assertNotNull(sender.getMessageContext());
// check default actions
Assertions.assertThat(sender.getMessageContext()).isNotNull();
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties((SoapMessage) sender.getMessageContext().getRequest());
Assertions.assertThat(wsaProperties).isNotNull();
Assertions.assertThat(wsaProperties.getReplyTo().getAddress()).isEqualTo(anonymousUri);
Assertions.assertThat(wsaProperties.getFaultTo().getAddress()).isEqualTo(anonymousUri);
}
use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties in project camel by apache.
the class ProducerParamsPrecedenceTest method testFaultTo.
@Test
public void testFaultTo() throws Exception {
template.requestBody("direct:faultTo", xmlBody);
assertNotNull(sender.getMessageContext());
// check default actions
Assertions.assertThat(sender.getMessageContext()).isNotNull();
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties((SoapMessage) sender.getMessageContext().getRequest());
Assertions.assertThat(wsaProperties).isNotNull();
Assertions.assertThat(wsaProperties.getFaultTo().getAddress()).isEqualTo(new URI("http://fault.to"));
Assertions.assertThat(wsaProperties.getReplyTo().getAddress()).isEqualTo(anonymousUri);
}
Aggregations