Merge "Bug 1536: Fixed minimum values of SET_TP_SRC/DST."
[controller.git] / opendaylight / sal / api / src / test / java / org / opendaylight / controller / sal / core / NodeTest.java
index c081e10645b6a1d2ff1f55dc942b47d932310344..0b394bf9ec6354d4822474162907ae3a6e0ef2a8 100644 (file)
@@ -19,13 +19,12 @@ package org.opendaylight.controller.sal.core;
 import java.util.UUID;
 import org.junit.Assert;
 import org.junit.Test;
-import org.opendaylight.controller.sal.core.ConstructionException;
-import org.opendaylight.controller.sal.core.Node;
 
 public class NodeTest {
     @Test
     public void testNodeOpenFlowOfWrongType() {
         try {
+            @SuppressWarnings("unused")
             Node of1 = new Node(Node.NodeIDType.OPENFLOW, new String(
                     "0xDEADBEEFCAFE0001L"));
 
@@ -43,6 +42,7 @@ public class NodeTest {
     @Test
     public void testNodeONEPKOfWrongType() {
         try {
+            @SuppressWarnings("unused")
             Node onepk1 = new Node(Node.NodeIDType.ONEPK, new Long(
                     0xDEADBEEFCAFE0001L));
 
@@ -60,6 +60,7 @@ public class NodeTest {
     @Test
     public void testNodePCEPOfWrongType() {
         try {
+            @SuppressWarnings("unused")
             Node pcep1 = new Node(Node.NodeIDType.PCEP, new Long(
                     0xDEADBEEFCAFE0001L));
 
@@ -396,7 +397,7 @@ public class NodeTest {
     public void testExtensibleNode() {
         // Add a new ID type
         Assert.assertTrue(Node.NodeIDType.registerIDType("FOO", Integer.class));
-        
+
         // Trying to re-register the node must fail
         Assert.assertFalse(Node.NodeIDType.registerIDType("FOO",
                                                           Integer.class));
@@ -408,11 +409,12 @@ public class NodeTest {
             // Got an unexpected exception
             Assert.assertTrue(false);
         }
-        
+
         // Now unregister the type and make sure the node doesn't get
         // created
         Node.NodeIDType.unRegisterIDType("FOO");
         try {
+            @SuppressWarnings("unused")
             Node n = new Node("FOO", new Integer(0xCAFE));
 
             // If we reach here, something didn't go fine, an