Search in sources :

Example 6 with TestGlobalAddressModule

use of io.joynr.messaging.routing.TestGlobalAddressModule in project joynr by bmwcarit.

the class ShutdownTest method setup.

@Before
public void setup() {
    Properties factoryPropertiesProvider = new Properties();
    factoryPropertiesProvider.put(AbstractJoynrApplication.PROPERTY_JOYNR_DOMAIN_LOCAL, "localdomain");
    factoryPropertiesProvider.put(MessagingPropertyKeys.CHANNELID, "ShutdownTestChannelId");
    MockitoAnnotations.initMocks(this);
    Module runtimeModule = Modules.override(new CCInProcessRuntimeModule()).with(new TestGlobalAddressModule());
    dummyApplication = (DummyJoynrApplication) new JoynrInjectorFactory(factoryPropertiesProvider, runtimeModule).createApplication(DummyJoynrApplication.class);
    provider = new DefaulttestProvider();
    providerQos = new ProviderQos();
    providerQos.setScope(ProviderScope.LOCAL);
    providerQos.setPriority(System.currentTimeMillis());
}
Also used : TestGlobalAddressModule(io.joynr.messaging.routing.TestGlobalAddressModule) CCInProcessRuntimeModule(io.joynr.runtime.CCInProcessRuntimeModule) DefaulttestProvider(joynr.tests.DefaulttestProvider) Properties(java.util.Properties) Module(com.google.inject.Module) TestGlobalAddressModule(io.joynr.messaging.routing.TestGlobalAddressModule) CCInProcessRuntimeModule(io.joynr.runtime.CCInProcessRuntimeModule) ProviderQos(joynr.types.ProviderQos) JoynrInjectorFactory(io.joynr.runtime.JoynrInjectorFactory) Before(org.junit.Before)

Aggregations

TestGlobalAddressModule (io.joynr.messaging.routing.TestGlobalAddressModule)6 CCInProcessRuntimeModule (io.joynr.runtime.CCInProcessRuntimeModule)5 JoynrInjectorFactory (io.joynr.runtime.JoynrInjectorFactory)5 Module (com.google.inject.Module)4 Before (org.junit.Before)4 AbstractModule (com.google.inject.AbstractModule)3 Properties (java.util.Properties)3 Injector (com.google.inject.Injector)2 DummyJoynrApplication (io.joynr.integration.util.DummyJoynrApplication)2 ProviderQos (joynr.types.ProviderQos)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ThreadFactoryBuilder (com.google.common.util.concurrent.ThreadFactoryBuilder)1 TypeLiteral (com.google.inject.TypeLiteral)1 JpaPersistModule (com.google.inject.persist.jpa.JpaPersistModule)1 AccessController (io.joynr.accesscontrol.AccessController)1 DiscoveryQos (io.joynr.arbitration.DiscoveryQos)1 LocalCapabilitiesDirectoryImpl (io.joynr.capabilities.LocalCapabilitiesDirectoryImpl)1 MutableMessageFactory (io.joynr.dispatching.MutableMessageFactory)1 AbstractMiddlewareMessagingStubFactory (io.joynr.messaging.AbstractMiddlewareMessagingStubFactory)1 IMessagingSkeleton (io.joynr.messaging.IMessagingSkeleton)1