Bug 1254 - Increase UT coverage 57/10257/2
authorMartin Bobak <mbobak@cisco.com>
Mon, 25 Aug 2014 19:17:00 +0000 (21:17 +0200)
committerPrasanna Huddar <prasanna.k.huddar@gmail.com>
Tue, 26 Aug 2014 09:50:49 +0000 (09:50 +0000)
Signed-off-by: Martin Bobak <mbobak@cisco.com>
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/util/InventoryDataServiceUtilTest.java

index 99c949bbfa08f113d0b84e0a632de2f346387362..4b47342a25d29457a0677e5bc46cebf02b932bb4 100644 (file)
@@ -8,6 +8,8 @@
 package org.opendaylight.openflowplugin.openflow.md.util;
 
 import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -51,12 +53,13 @@ public class InventoryDataServiceUtilTest {
      */
     public void testReadAllNodes() {
         List<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodes = InventoryDataServiceUtil.readAllNodes();
-        assertNotNull(nodes);
+        assertNull(nodes);
     }
 
     /**
      * Test method for {@link InventoryDataServiceUtil#nodeUpdatedBuilderFromDataPathId(BigInteger datapathId)}.
      */
+    @Test
     public void testNodeUpdatedBuilderFromDataPathId() {
         NodeUpdatedBuilder nodeUpdatedBuilder = InventoryDataServiceUtil.nodeUpdatedBuilderFromDataPathId(PATH_ID);
         assertNotNull(nodeUpdatedBuilder);
@@ -66,6 +69,7 @@ public class InventoryDataServiceUtilTest {
      * Test method for {@link InventoryDataServiceUtil#nodeConnectorBuilderFromDatapathIdPortNo(BigInteger datapathId,
      * Long portNo, OpenflowVersion ofVersion)}.
      */
+    @Test
     public void testNodeConnectorBuilderFromDatapathIdPortNo() {
         NodeConnectorBuilder nodeConnectorBuilder = InventoryDataServiceUtil.nodeConnectorBuilderFromDatapathIdPortNo(PATH_ID,
                 PORT_NO, OpenflowVersion.OF10);
@@ -84,6 +88,7 @@ public class InventoryDataServiceUtilTest {
      * Test method for {@link InventoryDataServiceUtil#nodeConnectorUpdatedBuilderFromDatapathIdPortNo(BigInteger datapathId,
      * Long portNo, OpenflowVersion ofVersion)}
      */
+    @Test
     public void testNodeConnectorUpdatedBuilderFromDatapathIdPortNo() {
         NodeConnectorUpdatedBuilder nodeConnectorUpdatedBuilder = InventoryDataServiceUtil.nodeConnectorUpdatedBuilderFromDatapathIdPortNo(PATH_ID,
                 PORT_NO, OpenflowVersion.OF10);