use of io.joynr.messaging.info.ControlledBounceProxyInformation in project joynr by bmwcarit.
the class MonitoringServiceImplTest method testRegisterBounceProxy.
@Test
public void testRegisterBounceProxy() {
Mockito.when(bpDirectoryMock.containsBounceProxy("X.Y")).thenReturn(false);
monitoringService.register("X.Y", "http://www.joynX.de/bp", "http://joyn.some-internal-server.de/bpX");
Mockito.verify(bpDirectoryMock).addBounceProxy(new ControlledBounceProxyInformation("X.Y", URI.create("http://www.joynX.de/bp"), URI.create("http://joyn.some-internal-server.de/bpX")));
}
use of io.joynr.messaging.info.ControlledBounceProxyInformation in project joynr by bmwcarit.
the class ControlledBounceProxyInformationTest method testNotEqualsDifferentUrlForBpc.
@Test
public void testNotEqualsDifferentUrlForBpc() {
ControlledBounceProxyInformation bpInfo1 = new ControlledBounceProxyInformation("X", "Y", URI.create("http://www.joynX.de"), URI.create("http://joynX.bmwgroup.net"));
ControlledBounceProxyInformation bpInfo2 = new ControlledBounceProxyInformation("X", "Y", URI.create("http://www.joynX.de"), URI.create("http://joynA.bmwgroup.net"));
Assert.assertFalse(bpInfo1.equals(bpInfo2));
}
use of io.joynr.messaging.info.ControlledBounceProxyInformation in project joynr by bmwcarit.
the class ControlledBounceProxyInformationTest method testNotEqualsDifferentClusterId.
@Test
public void testNotEqualsDifferentClusterId() {
ControlledBounceProxyInformation bpInfo1 = new ControlledBounceProxyInformation("X", "Y", URI.create("http://www.joynX.de"), URI.create("http://joynX.bmwgroup.net"));
ControlledBounceProxyInformation bpInfo2 = new ControlledBounceProxyInformation("X", "B", URI.create("http://www.joynX.de"), URI.create("http://joynX.bmwgroup.net"));
Assert.assertFalse(bpInfo1.equals(bpInfo2));
}
use of io.joynr.messaging.info.ControlledBounceProxyInformation in project joynr by bmwcarit.
the class ControlledBounceProxyInformationTest method testConstructorWithClusterAndInstance.
@Test
public void testConstructorWithClusterAndInstance() {
ControlledBounceProxyInformation bpInfo = new ControlledBounceProxyInformation("cluster0.instance0", URI.create("http://joyn.baseuri.io"));
Assert.assertEquals("cluster0.instance0", bpInfo.getId());
Assert.assertEquals("instance0", bpInfo.getInstanceId());
Assert.assertEquals("http://joyn.baseuri.io", bpInfo.getLocation().toString());
}
use of io.joynr.messaging.info.ControlledBounceProxyInformation in project joynr by bmwcarit.
the class ControlledBounceProxyInformationTest method testEqualsForSameReferences.
@Test
public void testEqualsForSameReferences() {
ControlledBounceProxyInformation bpInfo1 = new ControlledBounceProxyInformation("X", "Y", URI.create("http://www.joynX.de"), URI.create("http://joynX.bmwgroup.net"));
Assert.assertTrue(bpInfo1.equals(bpInfo1));
}
Aggregations