Search in sources :

Example 1 with EchoResponse

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());
}
Also used : EchoResponse(org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoResponse) EchoRequest(org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoRequest) Test(org.junit.Test)

Example 2 with EchoResponse

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;
}
Also used : EchoResponse(org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoResponse)

Example 3 with EchoResponse

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());
}
Also used : EchoResponse(org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoResponse) EchoRequest(org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoRequest)

Aggregations

EchoResponse (org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoResponse)3 EchoRequest (org.eclipse.scout.jaxws.consumer.jaxwsconsumertestservice.EchoRequest)2 Test (org.junit.Test)1