Unit tests: add serialization tests
[controller.git] / opendaylight / md-sal / cds-access-api / src / test / java / org / opendaylight / controller / cluster / access / commands / ExistsTransactionSuccessTest.java
index 027613f93d701890144fdc306c55cd24da12fa56..fe823ef4c0052e8e10be12dfcc2078c67423023e 100644 (file)
@@ -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));
     }