Search in sources :

Example 6 with InProcessAddress

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));
}
Also used : InProcessAddress(io.joynr.messaging.inprocess.InProcessAddress) Test(org.junit.Test)

Aggregations

InProcessAddress (io.joynr.messaging.inprocess.InProcessAddress)6 Address (joynr.system.RoutingTypes.Address)4 ChannelAddress (joynr.system.RoutingTypes.ChannelAddress)4 ProviderQos (joynr.types.ProviderQos)3 Version (joynr.types.Version)3 MqttAddress (joynr.system.RoutingTypes.MqttAddress)2 DiscoveryEntry (joynr.types.DiscoveryEntry)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 AbstractModule (com.google.inject.AbstractModule)1 Injector (com.google.inject.Injector)1 Provides (com.google.inject.Provides)1 Singleton (com.google.inject.Singleton)1 FactoryModuleBuilder (com.google.inject.assistedinject.FactoryModuleBuilder)1 Named (com.google.inject.name.Named)1 JoynrVersion (io.joynr.JoynrVersion)1 DiscoveryQos (io.joynr.arbitration.DiscoveryQos)1 RpcUtils (io.joynr.dispatching.rpc.RpcUtils)1 JoynrRuntimeException (io.joynr.exceptions.JoynrRuntimeException)1 MessagingQos (io.joynr.messaging.MessagingQos)1 AttributeSubscribeInvocation (io.joynr.proxy.invocation.AttributeSubscribeInvocation)1