use of org.eclipse.ecf.remoteservice.IRemoteService in project ecf by eclipse.
the class AbstractConcatConsumerTestCase method testCallSynch.
public void testCallSynch() throws Exception {
final IRemoteService service = getRemoteService(targetID, IConcatService.class.getName(), null);
assertNotNull(service);
traceCallStart("callSynch");
final Object result = service.callSync(createRemoteConcat("Eclipse ", "is cool"));
traceCallEnd("callSynch", result);
assertNotNull(result);
assertTrue(result.equals("Eclipse ".concat("is cool")));
}
use of org.eclipse.ecf.remoteservice.IRemoteService in project ecf by eclipse.
the class AbstractConcatConsumerTestCase method testProxy.
public void testProxy() throws Exception {
final IRemoteService service = getRemoteService(targetID, getRemoteServiceClass().getName(), getRemoteServiceFilter());
assertNotNull(service);
final IConcatService proxy = (IConcatService) service.getProxy();
assertNotNull(proxy);
traceCallStart("getProxy");
final String result = proxy.concat("ECF ", "sucks");
traceCallEnd("getProxy", result);
Thread.sleep(ASYNC_WAITTIME);
}
use of org.eclipse.ecf.remoteservice.IRemoteService in project ecf by eclipse.
the class AbstractConcatConsumerTestCase method testGetService.
public void testGetService() throws Exception {
final IRemoteService service = getRemoteService(targetID, IConcatService.class.getName(), null);
assertNotNull(service);
}
use of org.eclipse.ecf.remoteservice.IRemoteService in project ecf by eclipse.
the class AbstractConcatConsumerTestCase method testCallAsynch.
public void testCallAsynch() throws Exception {
final IRemoteService service = getRemoteService(targetID, getRemoteServiceClass().getName(), getRemoteServiceFilter());
assertNotNull(service);
traceCallStart("callAsynch");
service.callAsync(createRemoteConcat("ECF ", "is cool"), createRemoteCallListener());
traceCallEnd("callAsynch");
Thread.sleep(ASYNC_WAITTIME);
}
use of org.eclipse.ecf.remoteservice.IRemoteService in project ecf by eclipse.
the class AbstractRemoteServiceTest method testProxy.
public void testProxy() throws Exception {
final IRemoteService service = registerAndGetRemoteService();
if (service == null)
return;
final IConcatService proxy = (IConcatService) service.getProxy();
assertNotNull(proxy);
traceCallStart("getProxy");
final String result = proxy.concat("ECF ", "sucks");
traceCallEnd("getProxy", result);
Thread.sleep(SLEEPTIME);
}
Aggregations