use of io.joynr.jeeintegration.ProviderWrapper in project joynr by bmwcarit.
the class ProviderWrapperTest method testMessageContextCopied.
@Test
public void testMessageContextCopied() throws Throwable {
ProviderWrapper subject = createSubject();
JoynrProvider proxy = createProxy(subject);
Method method = TestServiceProviderInterface.class.getMethod("testServiceMethodNoArgs");
subject.invoke(proxy, method, new Object[0]);
verify(joynrJeeMessageContext).setMessageContext(expectedMessageContext);
}
use of io.joynr.jeeintegration.ProviderWrapper in project joynr by bmwcarit.
the class ProviderWrapperTest method testInvokeVoidReturnMethod.
@Test
public void testInvokeVoidReturnMethod() throws Throwable {
ProviderWrapper subject = createSubject();
JoynrProvider proxy = createProxy(subject);
Method method = TestServiceProviderInterface.class.getMethod("testServiceMethodVoidReturn");
Object result = subject.invoke(proxy, method, new Object[0]);
assertTrue(result instanceof Promise);
}
Aggregations