use of io.joynr.integration.util.DummyJoynrApplication in project joynr by bmwcarit.
the class BroadcastEnd2EndTest method tearDown.
@Override
@After
public void tearDown() throws Exception {
super.tearDown();
for (DummyJoynrApplication application : dummyApplications) {
application.shutdown();
}
dummyApplications.clear();
}
use of io.joynr.integration.util.DummyJoynrApplication in project joynr by bmwcarit.
the class BroadcastEnd2EndTest method getRuntime.
@Override
protected JoynrRuntime getRuntime(Properties joynrConfig, Module... modules) {
Module runtimeModule = Modules.override(new CCInProcessRuntimeModule()).with(new AtmosphereMessagingModule());
Module modulesWithRuntime = Modules.override(modules).with(runtimeModule);
DummyJoynrApplication application = (DummyJoynrApplication) new JoynrInjectorFactory(joynrConfig, modulesWithRuntime).createApplication(DummyJoynrApplication.class);
dummyApplications.add(application);
return application.getRuntime();
}
use of io.joynr.integration.util.DummyJoynrApplication in project joynr by bmwcarit.
the class MqttProviderProxyEnd2EndTest method getRuntime.
@Override
protected JoynrRuntime getRuntime(Properties joynrConfig, Module... modules) {
mqttConfig = new Properties();
mqttConfig.put(MqttModule.PROPERTY_KEY_MQTT_BROKER_URI, "tcp://localhost:" + mqttBrokerPort);
// test is using 2 global address typs, so need to set one of them as primary
mqttConfig.put(MessagingPropertyKeys.PROPERTY_MESSAGING_PRIMARYGLOBALTRANSPORT, "mqtt");
mqttConfig.put(MessagingPropertyKeys.DISCOVERYDIRECTORYURL, "tcp://localhost:" + mqttBrokerPort);
mqttConfig.put(MessagingPropertyKeys.DOMAINACCESSCONTROLLERURL, "tcp://localhost:" + mqttBrokerPort);
mqttConfig.put(MessagingPropertyKeys.MQTT_TOPIC_PREFIX_MULTICAST, "");
mqttConfig.put(MessagingPropertyKeys.MQTT_TOPIC_PREFIX_REPLYTO, "replyto/");
mqttConfig.put(MessagingPropertyKeys.MQTT_TOPIC_PREFIX_UNICAST, "");
joynrConfig.putAll(mqttConfig);
joynrConfig.putAll(baseTestConfig);
Module runtimeModule = Modules.override(new CCInProcessRuntimeModule()).with(modules);
Module modulesWithRuntime = Modules.override(runtimeModule).with(new MqttPahoModule(), new AbstractModule() {
@Override
protected void configure() {
bind(RawMessagingPreprocessor.class).toInstance(new RawMessagingPreprocessor() {
@Override
public byte[] process(byte[] rawMessage, Map<String, Serializable> context) {
return rawMessage;
}
});
}
});
DummyJoynrApplication application = (DummyJoynrApplication) new JoynrInjectorFactory(joynrConfig, modulesWithRuntime).createApplication(DummyJoynrApplication.class);
return application.getRuntime();
}
use of io.joynr.integration.util.DummyJoynrApplication in project joynr by bmwcarit.
the class RoutingTableOverwriteEnd2EndTest method createRuntime.
protected JoynrRuntime createRuntime(String runtimeId, Properties additionalProperties) {
Properties properties = new Properties();
properties.put(MqttModule.PROPERTY_KEY_MQTT_BROKER_URI, "tcp://localhost:" + mqttBrokerPort);
properties.put(MessagingPropertyKeys.PROPERTY_MESSAGING_PRIMARYGLOBALTRANSPORT, "mqtt");
properties.put(MessagingPropertyKeys.DISCOVERYDIRECTORYURL, "tcp://localhost:" + mqttBrokerPort);
properties.put(MessagingPropertyKeys.CHANNELID, runtimeId);
properties.put(MqttModule.PROPERTY_KEY_MQTT_CLIENT_ID_PREFIX, runtimeId);
if (additionalProperties != null) {
properties.putAll(additionalProperties);
}
Module module = Modules.override(new CCInProcessRuntimeModule()).with(new MqttPahoModule());
DummyJoynrApplication application = (DummyJoynrApplication) new JoynrInjectorFactory(properties, module).createApplication(DummyJoynrApplication.class);
return application.getRuntime();
}
use of io.joynr.integration.util.DummyJoynrApplication in project joynr by bmwcarit.
the class ProxyErrorsTest method getRuntime.
protected JoynrRuntime getRuntime(Properties joynrConfig, Module... modules) {
Module runtimeModule = new CCInProcessRuntimeModule();
Module modulesWithRuntime = Modules.override(runtimeModule).with(modules);
modulesWithRuntime = Modules.override(modulesWithRuntime).with(new TestGlobalAddressModule());
DummyJoynrApplication application = (DummyJoynrApplication) new JoynrInjectorFactory(joynrConfig, modulesWithRuntime).createApplication(DummyJoynrApplication.class);
return application.getRuntime();
}
Aggregations