Search in sources :

Example 6 with MyServiceSync

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");
}
Also used : MyServiceSync(joynr.jeeintegration.servicelocator.MyServiceSync)

Aggregations

MyServiceSync (joynr.jeeintegration.servicelocator.MyServiceSync)6 Test (org.junit.Test)5 Matchers.anyString (org.mockito.Matchers.anyString)4 MessagingQos (io.joynr.messaging.MessagingQos)2 DiscoveryQos (io.joynr.arbitration.DiscoveryQos)1 ApplicationException (joynr.exceptions.ApplicationException)1