use of io.joynr.messaging.inprocess.InProcessAddress in project joynr by bmwcarit.
the class LibJoynrMessageRouterTest method addMulticastReceiverForInProcessProvider.
@Test
public void addMulticastReceiverForInProcessProvider() {
InProcessAddress mockInProcessAddress = mock(InProcessAddress.class);
final String multicastId = "multicastIdTest";
final String subscriberParticipantId = "subscriberParticipantIdTest";
final String providerParticipantId = "providerParticipantIdTest";
when(routingTable.get(providerParticipantId)).thenReturn(mockInProcessAddress);
messageRouter.addMulticastReceiver(multicastId, subscriberParticipantId, providerParticipantId);
// we don't expect this to be called
Mockito.verify(messageRouterParent, times(0)).addMulticastReceiver(Mockito.any(String.class), Mockito.any(String.class), Mockito.any(String.class));
}
Aggregations