use of io.joynr.messaging.info.ControlledBounceProxyInformation in project joynr by bmwcarit.
the class ControlledBounceProxyInformationTest method testEquals.
@Test
public void testEquals() {
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://joynX.bmwgroup.net"));
Assert.assertTrue(bpInfo1.equals(bpInfo2));
}
use of io.joynr.messaging.info.ControlledBounceProxyInformation in project joynr by bmwcarit.
the class ControlledBounceProxyInformationTest method testNotEqualsDifferentUrlForCc.
@Test
public void testNotEqualsDifferentUrlForCc() {
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.joynA.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 testConstructorWithBpId.
@Test
public void testConstructorWithBpId() {
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 testNotEqualsDifferentInstanceId.
@Test
public void testNotEqualsDifferentInstanceId() {
ControlledBounceProxyInformation bpInfo1 = new ControlledBounceProxyInformation("X", "Y", URI.create("http://www.joynX.de"), URI.create("http://joynX.bmwgroup.net"));
ControlledBounceProxyInformation bpInfo2 = new ControlledBounceProxyInformation("A", "Y", 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 ChannelUrlUtilTest method testGetChannelUrlPathWithDifferentBaseUri.
@Test
public void testGetChannelUrlPathWithDifferentBaseUri() {
ControlledBounceProxyInformation bpInfo = new ControlledBounceProxyInformation("X.Y", URI.create("http://www.joyn1.de/bp"));
URI result = ChannelUrlUtil.createChannelLocation(bpInfo, "channel-123", URI.create("http://bp.joynX.de/channels/channel-123"));
Assert.assertEquals("http://bp.joynX.de/channels/channel-123;jsessionid=.Y", result.toString());
}
Aggregations