Package org.eclipse.ecf.tests.remoteservice.rpc.common

Examples of org.eclipse.ecf.tests.remoteservice.rpc.common.IEcho.echo()


  public void testCallViaProxy() {
    IRemoteService rpcClientService = getRemoteServiceClientContainerAdapter(container).getRemoteService(registrationEchoProxy.getReference());
    try {
      IEcho echo = (IEcho) rpcClientService.getProxy(Activator.class.getClassLoader(), new Class[]{IEcho.class});
      assertNotNull(echo);
      Object result = echo.echo(ECHO_TEST_DATA);
      assertNotNull(result);
      assertEquals(result, ECHO_TEST_DATA);
    }
    catch (ECFException e) {
      e.printStackTrace();
View Full Code Here


  public void testCallViaProxy2() {
    IRemoteService rpcClientService = getRemoteServiceClientContainerAdapter(container).getRemoteService(registrationEchoProxy.getReference());
    try {
      IEcho echo = (IEcho) rpcClientService.getProxy();
      assertNotNull(echo);
      Object result = echo.echo(ECHO_TEST_DATA);
      assertNotNull(result);
      assertEquals(result, ECHO_TEST_DATA);
    }
    catch (ECFException e) {
      e.printStackTrace();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.