receiver.getMessageList().assertMessagesReceived(1);
}
public void testSoapConsumerSimple() throws Exception {
JmsComponent component = new JmsComponent();
JmsSoapConsumerEndpoint endpoint = new JmsSoapConsumerEndpoint();
endpoint.setService(new QName("uri:HelloWorld", "HelloService"));
endpoint.setEndpoint("HelloPort");
endpoint.setTargetService(new QName("mock"));
endpoint.setListenerType("simple");
endpoint.setConnectionFactory(connectionFactory);
endpoint.setDestinationName("destination");
endpoint.setReplyDestinationName("reply");
endpoint.setWsdl(new ClassPathResource("org/apache/servicemix/jms/HelloWorld-RPC.wsdl"));
component.setEndpoints(new JmsConsumerEndpoint[] {endpoint});
container.activateComponent(component, "servicemix-jms");
MockServiceComponent mock = new MockServiceComponent();
mock.setService(new QName("mock"));