use of joynr.tests.DefaulttestProvider in project joynr by bmwcarit.
the class AbstractBroadcastEnd2EndTest method setupProviderRuntime.
private void setupProviderRuntime(String methodName) throws InterruptedException, ApplicationException {
Properties factoryPropertiesProvider;
String channelIdProvider = "JavaTest-" + UUID.randomUUID().getLeastSignificantBits() + "-Provider-BroadcastEnd2EndTest-" + methodName;
factoryPropertiesProvider = PropertyLoader.loadProperties("testMessaging.properties");
factoryPropertiesProvider.put(MessagingPropertyKeys.CHANNELID, channelIdProvider);
factoryPropertiesProvider.put(MessagingPropertyKeys.RECEIVERID, UUID.randomUUID().toString());
factoryPropertiesProvider.put(AbstractJoynrApplication.PROPERTY_JOYNR_DOMAIN_LOCAL, domain);
providerRuntime = getRuntime(factoryPropertiesProvider, getSubscriptionPublisherFactoryModule(), new StaticDomainAccessControlProvisioningModule());
provider = new DefaulttestProvider();
// .waitForFullRegistration(CONST_DEFAULT_TEST_TIMEOUT);
Future<Void> voidFuture = providerRuntime.registerProvider(domain, provider, providerQos);
voidFuture.get(CONST_DEFAULT_TEST_TIMEOUT);
}
use of joynr.tests.DefaulttestProvider in project joynr by bmwcarit.
the class RequestInterpreterTest method setup.
@Before
public void setup() {
RequestCallerFactory requestCallerFactory = new RequestCallerFactory();
requestCaller = requestCallerFactory.create(new DefaulttestProvider());
subject = new RequestInterpreter(joynrMessageScope, joynrMessageCreatorProvider, joynrMessageContextProvider);
request = new OneWayRequest("getTestAttribute", new Object[0], new Class[0]);
request.setCreatorUserId("creator");
Mockito.when(joynrMessageCreatorProvider.get()).thenReturn(joynrMessageCreator);
Mockito.when(joynrMessageContextProvider.get()).thenReturn(joynrMessageContext);
}
Aggregations