- @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