use of io.joynr.dispatching.rpc.ReplyCaller in project joynr by bmwcarit.
the class RequestReplyManagerTest method replyCallerInvokedForIncomingReply.
@Test
public void replyCallerInvokedForIncomingReply() throws Exception {
ReplyCaller replyCaller = mock(ReplyCaller.class);
replyCallerDirectory.addReplyCaller(request1.getRequestReplyId(), replyCaller, ExpiryDate.fromRelativeTtl(TIME_TO_LIVE * 2));
Reply reply = new Reply(request1.getRequestReplyId(), payload1);
requestReplyManager.handleReply(reply);
verify(replyCaller).messageCallBack(reply);
}
Aggregations