use of io.joynr.messaging.info.ControlledBounceProxyInformation in project joynr by bmwcarit.
the class InMemoryBounceProxyDirectoryTest method testGetAssignableBounceProxies.
@Test
public void testGetAssignableBounceProxies() {
directory.addBounceProxy(new ControlledBounceProxyInformation("A1.B1", null));
directory.addBounceProxy(new ControlledBounceProxyInformation("A2.B2", null));
directory.addBounceProxy(new ControlledBounceProxyInformation("A3.B3", null));
List<BounceProxyRecord> bounceProxies = directory.getAssignableBounceProxies();
Assert.assertThat(bounceProxies, Matchers.hasItem(hasId("A1.B1")));
Assert.assertThat(bounceProxies, Matchers.hasItem(hasId("A2.B2")));
Assert.assertThat(bounceProxies, Matchers.hasItem(hasId("A3.B3")));
assertEquals(3, bounceProxies.size());
}
use of io.joynr.messaging.info.ControlledBounceProxyInformation in project joynr by bmwcarit.
the class MonitoringServiceImpl method register.
@Override
public void register(String bpId, String urlForCc, String urlForBpc) {
if (!bounceProxyDirectory.containsBounceProxy(bpId)) {
ControlledBounceProxyInformation bpInfo = new ControlledBounceProxyInformation(bpId, URI.create(urlForCc), URI.create(urlForBpc));
bounceProxyDirectory.addBounceProxy(bpInfo);
}
}
Aggregations