use of org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoResponse in project scout.rt by eclipse.
the class AbstractJaxWsClientTest method testSetupEcho.
/*
* ************************************************************
* Test setup
* ************************************************************/
@Test
public void testSetupEcho() {
final String messageSent = "Test Message";
EchoRequest req = new EchoRequest();
req.setMessage(messageSent);
EchoResponse response = BEANS.get(JaxWsConsumerTestClient.class).newInvocationContext().getPort().echo(req);
assertNotNull(response);
assertEquals(messageSent, response.getMessage());
}
use of org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoResponse in project scout.rt by eclipse.
the class JaxWsConsumerTestServiceProvider method echo.
@Override
public EchoResponse echo(EchoRequest req) {
Assertions.assertNotNull(req);
LOG.info("echo '{}'", req.getMessage());
EchoResponse resp = new EchoResponse();
resp.setMessage(req.getMessage());
return resp;
}
use of org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoResponse in project scout.rt by eclipse.
the class AbstractJaxWsClientTest method assertSendEcho.
protected void assertSendEcho(JaxWsConsumerTestServicePortType port, int i) {
final String messageSent = "Test Message " + i;
EchoRequest req = new EchoRequest();
req.setMessage(messageSent);
EchoResponse response = port.echo(req);
assertNotNull(response);
assertEquals(messageSent, response.getMessage());
}
Aggregations