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%2Fcommands%2FExistsTransactionSuccessTest.java;h=fe823ef4c0052e8e10be12dfcc2078c67423023e;hp=027613f93d701890144fdc306c55cd24da12fa56;hb=54e20827dff665094aa1d187124e79e855439a96;hpb=9c17a104cd90b5529b5623d1d0136d7cc332707d;ds=sidebyside diff --git a/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/ExistsTransactionSuccessTest.java b/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/ExistsTransactionSuccessTest.java index 027613f93d..fe823ef4c0 100644 --- a/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/ExistsTransactionSuccessTest.java +++ b/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/ExistsTransactionSuccessTest.java @@ -18,26 +18,25 @@ public class ExistsTransactionSuccessTest extends AbstractTransactionSuccessTest private static final ExistsTransactionSuccess OBJECT = new ExistsTransactionSuccess( TRANSACTION_IDENTIFIER, 0, EXISTS); - @Test - public void getExists() throws Exception { - final boolean result = OBJECT.getExists(); - Assert.assertEquals(EXISTS, result); + @Override + protected ExistsTransactionSuccess object() { + return OBJECT; } @Test - public void externalizableProxy() throws Exception { - final ExistsTransactionSuccessProxyV1 proxy = OBJECT.externalizableProxy(ABIVersion.BORON); - Assert.assertNotNull(proxy); + public void getExistsTest() throws Exception { + final boolean result = OBJECT.getExists(); + Assert.assertEquals(EXISTS, result); } @Test - public void cloneAsVersion() throws Exception { + public void cloneAsVersionTest() throws Exception { final ExistsTransactionSuccess clone = OBJECT.cloneAsVersion(ABIVersion.BORON); Assert.assertEquals(OBJECT, clone); } @Test - public void addToStringAttributes() throws Exception { + public void addToStringAttributesTest() throws Exception { final MoreObjects.ToStringHelper result = OBJECT.addToStringAttributes(MoreObjects.toStringHelper(OBJECT)); Assert.assertTrue(result.toString().contains("exists=" + EXISTS)); }