added test case to VmTest.java 97/82297/2
authorSandeep J <sandeejh@in.ibm.com>
Thu, 14 Mar 2019 20:09:10 +0000 (01:39 +0530)
committerTakamune Cho <takamune.cho@att.com>
Thu, 14 Mar 2019 23:34:13 +0000 (23:34 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: I21c87ab20f6c3faee200fcf2d25120175f58e2c5
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/interfaceData/VmTest.java

index 153892d..401ad07 100644 (file)
@@ -22,6 +22,7 @@
 package org.onap.appc.flow.controller.interfaceData;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 
 import org.junit.Before;
 import org.junit.Test;
@@ -52,4 +53,9 @@ public class VmTest {
         vm.setVmId("VmId");
         assertEquals("VmId", vm.getVmId());
     }
+    
+    @Test
+    public void testToString() {
+        assertTrue(vm.toString() instanceof String);
+    }
 }