Search in sources :

Example 6 with ServiceTunnelRequest

use of org.eclipse.scout.rt.shared.servicetunnel.ServiceTunnelRequest in project scout.rt by eclipse.

the class ServiceOperationInvokerTest method invokePingService.

private ServiceTunnelResponse invokePingService(final ServerRunContext runcontext) {
    ServiceOperationInvoker s = new ServiceOperationInvoker();
    ServiceTunnelRequest request = new ServiceTunnelRequest(IPingService.class.getName(), "ping", new Class[] { String.class }, new Object[] { "hello" });
    return s.invoke(runcontext, request);
}
Also used : IPingService(org.eclipse.scout.rt.shared.services.common.ping.IPingService) ServiceTunnelRequest(org.eclipse.scout.rt.shared.servicetunnel.ServiceTunnelRequest)

Aggregations

ServiceTunnelRequest (org.eclipse.scout.rt.shared.servicetunnel.ServiceTunnelRequest)6 ServiceTunnelResponse (org.eclipse.scout.rt.shared.servicetunnel.ServiceTunnelResponse)4 IPingService (org.eclipse.scout.rt.shared.services.common.ping.IPingService)3 Test (org.junit.Test)3 MockHttpTransport (com.google.api.client.testing.http.MockHttpTransport)1 MockLowLevelHttpResponse (com.google.api.client.testing.http.MockLowLevelHttpResponse)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 InputStream (java.io.InputStream)1 ObjectInputStream (java.io.ObjectInputStream)1 ObjectOutputStream (java.io.ObjectOutputStream)1 OutputStream (java.io.OutputStream)1 Method (java.lang.reflect.Method)1 FutureCancelledError (org.eclipse.scout.rt.platform.util.concurrent.FutureCancelledError)1 ThreadInterruptedError (org.eclipse.scout.rt.platform.util.concurrent.ThreadInterruptedError)1 IHttpTransportBuilder (org.eclipse.scout.rt.shared.http.IHttpTransportBuilder)1 IHttpTransportManager (org.eclipse.scout.rt.shared.http.IHttpTransportManager)1 IServiceTunnelContentHandler (org.eclipse.scout.rt.shared.servicetunnel.IServiceTunnelContentHandler)1