Added test files for nemo-tool
[nemo.git] / nemo-tools / sandbox / src / test / java / org / opendaylight / nemo / tool / sandbox / models / RouterTest.java
diff --git a/nemo-tools/sandbox/src/test/java/org/opendaylight/nemo/tool/sandbox/models/RouterTest.java b/nemo-tools/sandbox/src/test/java/org/opendaylight/nemo/tool/sandbox/models/RouterTest.java
new file mode 100644 (file)
index 0000000..8326a78
--- /dev/null
@@ -0,0 +1,35 @@
+/*\r
+ * Copyright (c) 2016 Huawei, Inc. and others. All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+package org.opendaylight.nemo.tool.sandbox.models;\r
+\r
+import junit.framework.TestCase;\r
+import org.junit.Assert;\r
+import org.junit.Before;\r
+import org.junit.Test;\r
+import static org.mockito.Mockito.*;\r
+import static org.junit.Assert.*;\r
+\r
+/**\r
+ * Created by Thomas Liu on 2016/1/14.\r
+ */\r
+public class RouterTest extends TestCase {\r
+    private String name;\r
+    private long dataPathId;\r
+    private Router routerTest;\r
+    @Before\r
+    public void setUp() throws Exception {\r
+\r
+    }\r
+\r
+    @Test\r
+    public void test1() throws Exception {\r
+        name = new String("name1");\r
+        dataPathId = 1L;\r
+        routerTest = new Router(name,dataPathId);\r
+    }\r
+}
\ No newline at end of file