use of joynr.jeeintegration.servicelocator.MyServiceSync in project joynr by bmwcarit.
the class JeeJoynrServiceLocatorTest method forceJoynrProxyToThrowSpecifiedException.
private void forceJoynrProxyToThrowSpecifiedException(Exception exceptionToThrow) {
reset(myJoynrProxy);
when(myJoynrProxy.callMe(anyString())).thenThrow(exceptionToThrow);
MyServiceSync proxy = subject.get(MyServiceSync.class, "local");
proxy.callMe("one");
}
Aggregations