Search in sources :

Example 6 with IConcatService

use of org.eclipse.ecf.tests.remoteservice.IConcatService in project ecf by eclipse.

the class SSLSimpleTest method testSimpleClientAndServerWithProxy.

public void testSimpleClientAndServerWithProxy() throws Exception {
    IRemoteService remoteService = client.getRemoteService();
    assertNotNull(remoteService);
    // Use proxy
    String result = ((IConcatService) remoteService.getProxy()).concat(TEST_STRING_1, TEST_STRING_2);
    assertTrue(result != null && result.equals(TEST_STRING_1 + TEST_STRING_2));
}
Also used : IConcatService(org.eclipse.ecf.tests.remoteservice.IConcatService) IRemoteService(org.eclipse.ecf.remoteservice.IRemoteService)

Aggregations

IRemoteService (org.eclipse.ecf.remoteservice.IRemoteService)6 IConcatService (org.eclipse.ecf.tests.remoteservice.IConcatService)6 Dictionary (java.util.Dictionary)4 Hashtable (java.util.Hashtable)4 IRemoteServiceContainerAdapter (org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter)4 RemoteServiceTracker (org.eclipse.ecf.remoteservice.util.tracker.RemoteServiceTracker)4 IRemoteServiceProxy (org.eclipse.ecf.remoteservice.IRemoteServiceProxy)2 IRemoteServiceReference (org.eclipse.ecf.remoteservice.IRemoteServiceReference)2