X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fcds-access-api%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2FABIVersionTest.java;h=8c2ff3bbb7576ee4eee51245a1fa361a6e12ff5b;hp=0725dfc1d368f2238c28daf05a4b374d9c66ffc2;hb=b3de95dce254bd72babd11dc94bc3573a9e2ccc7;hpb=edfd0bcb062ade225d26b74d4f289ee98f15a79d diff --git a/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/ABIVersionTest.java b/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/ABIVersionTest.java index 0725dfc1d3..8c2ff3bbb7 100644 --- a/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/ABIVersionTest.java +++ b/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/ABIVersionTest.java @@ -10,7 +10,7 @@ package org.opendaylight.controller.cluster.access; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThrows; import static org.junit.Assert.assertTrue; -import static org.opendaylight.controller.cluster.access.ABIVersion.BORON; +import static org.opendaylight.controller.cluster.access.ABIVersion.MAGNESIUM; import static org.opendaylight.controller.cluster.access.ABIVersion.TEST_FUTURE_VERSION; import static org.opendaylight.controller.cluster.access.ABIVersion.TEST_PAST_VERSION; @@ -23,15 +23,15 @@ public class ABIVersionTest { @Test public void testInvalidVersions() { assertTrue(TEST_PAST_VERSION.compareTo(TEST_FUTURE_VERSION) < 0); - assertTrue(TEST_PAST_VERSION.compareTo(BORON) < 0); - assertTrue(TEST_FUTURE_VERSION.compareTo(BORON) > 0); + assertTrue(TEST_PAST_VERSION.compareTo(MAGNESIUM) < 0); + assertTrue(TEST_FUTURE_VERSION.compareTo(MAGNESIUM) > 0); } @Test - public void testBoronVersion() throws Exception { - assertEquals((short)5, BORON.shortValue()); - assertEquals(BORON, ABIVersion.valueOf(BORON.shortValue())); - assertEquals(BORON, ABIVersion.readFrom(ByteStreams.newDataInput(writeVersion(BORON)))); + public void testMagnesiumVersion() throws Exception { + assertEquals((short)8, MAGNESIUM.shortValue()); + assertEquals(MAGNESIUM, ABIVersion.valueOf(MAGNESIUM.shortValue())); + assertEquals(MAGNESIUM, ABIVersion.readFrom(ByteStreams.newDataInput(writeVersion(MAGNESIUM)))); } @Test