Checkstyle enforcer
[controller.git] / opendaylight / containermanager / implementation / src / test / java / org / opendaylight / controller / containermanager / internal / ContainerImplTest.java
index 4bdd6797d6717525a377e7f5c4d7de15ce23bd97..2d6439954a6911cb0078f4b1ec1d25bcb1a1e918 100644 (file)
@@ -20,41 +20,41 @@ import org.opendaylight.controller.sal.utils.NodeCreator;
 \r
 public class ContainerImplTest {\r
 \r
-       @Test\r
-       public void test() {\r
-               \r
-               ContainerImpl container1 = new ContainerImpl();\r
-                               \r
-               //Create Component for init\r
-               ComponentImpl component1 = new ComponentImpl(null, null, null);\r
-               component1.setInterface("serviceTestName", null);\r
-\r
-               //container1 does not have name yet\r
-               container1.init(component1);\r
-               assertNull(container1.getName());\r
-               \r
-               //Sets container1 name to TestName\r
-               Hashtable<String, String> properties = new Hashtable<String, String>();\r
-               properties.put("dummyKey", "dummyValue");\r
-               properties.put("containerName", "TestName");\r
-               component1.setInterface("serviceTestName", properties);\r
-\r
-               container1.init(component1);\r
-               assertEquals("TestName", container1.getName());\r
-               \r
-               //getContainerFlows always returns null for now\r
-               assertNull(container1.getContainerFlows());\r
-               \r
-               //getTag always returns 0 for now\r
-               Node n = NodeCreator.createOFNode(1L);\r
-               assertEquals(0, container1.getTag(n));\r
-               \r
-               //getNodeConnectors always returns null for now\r
-               assertNull(container1.getNodeConnectors());\r
-               \r
-               //getNodes always returns null for now\r
-               assertNull(container1.getNodes());\r
-               \r
-       }\r
+        @Test\r
+        public void test() {\r
+\r
+                ContainerImpl container1 = new ContainerImpl();\r
+\r
+                //Create Component for init\r
+                ComponentImpl component1 = new ComponentImpl(null, null, null);\r
+                component1.setInterface("serviceTestName", null);\r
+\r
+                //container1 does not have name yet\r
+                container1.init(component1);\r
+                assertNull(container1.getName());\r
+\r
+                //Sets container1 name to TestName\r
+                Hashtable<String, String> properties = new Hashtable<String, String>();\r
+                properties.put("dummyKey", "dummyValue");\r
+                properties.put("containerName", "TestName");\r
+                component1.setInterface("serviceTestName", properties);\r
+\r
+                container1.init(component1);\r
+                assertEquals("TestName", container1.getName());\r
+\r
+                //getContainerFlows always returns null for now\r
+                assertNull(container1.getContainerFlows());\r
+\r
+                //getTag always returns 0 for now\r
+                Node n = NodeCreator.createOFNode(1L);\r
+                assertEquals(0, container1.getTag(n));\r
+\r
+                //getNodeConnectors always returns null for now\r
+                assertNull(container1.getNodeConnectors());\r
+\r
+                //getNodes always returns null for now\r
+                assertNull(container1.getNodes());\r
+\r
+        }\r
 \r
 }\r