Modify nemo-impl partical test files
[nemo.git] / nemo-impl / src / test / java / org / opendaylight / nemo / user / vnspacemanager / instancecheck / ResultInstanceCheckTest.java
index 33d38e53b4104563e0dbe0af4efaa266065d19e8..b6127da0c6c5b0b1c21179277d0cd7f25eda5d1f 100644 (file)
@@ -1,37 +1,41 @@
-/*
- * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.nemo.user.vnspacemanager.instancecheck;
-
-import static org.mockito.Mockito.mock;
-
-import org.junit.Assert;
-import org.opendaylight.nemo.user.tenantmanager.TenantManage;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.UserId;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.Results;
-
-/**
- * Created by wangjunfei on 2015/11/10.
- */
-public class ResultInstanceCheckTest {
-    private TenantManage tenantManage;
-    private UserId userId;
-    private Results results;
-    private ResultInstanceCheck resultInstanceCheck;
-    @org.junit.Before
-    public void setUp() throws Exception {
-        tenantManage = mock(TenantManage.class);
-        userId = mock(UserId.class);
-        results = mock(Results.class);
-        resultInstanceCheck = mock(ResultInstanceCheck.class);
-    }
-
-    @org.junit.Test
-    public void testCheckResultInstance() throws Exception {
-        Assert.assertNull(resultInstanceCheck.checkResultInstance(userId,results));
-    }
+package org.opendaylight.nemo.user.vnspacemanager.instancecheck;\r
+\r
+import org.opendaylight.nemo.user.tenantmanager.TenantManage;\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
+import org.opendaylight.nemo.user.tenantmanager.TenantManage;\r
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.UserId;\r
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.Results;\r
+\r
+import javax.xml.transform.Result;\r
+\r
+/**\r
+ * Created by Thomas Liu on 2015/11/26.\r
+ */\r
+public class ResultInstanceCheckTest extends junit.framework.TestCase {\r
+\r
+    private ResultInstanceCheck  resultInstanceCheckTest;\r
+    private TenantManage tenantManage;\r
+    private Results results;\r
+    private UserId userId;\r
+    @org.junit.Before\r
+    public void setUp() throws Exception {\r
+        tenantManage = mock(TenantManage.class);\r
+        resultInstanceCheckTest = new ResultInstanceCheck(tenantManage);\r
+        results = mock(Results.class);\r
+        userId = mock(UserId.class);\r
+    }\r
+\r
+    @org.junit.Test\r
+    public void testCheckResultInstance() throws Exception {\r
+        resultInstanceCheckTest.checkResultInstance(userId,results);\r
+\r
+    }\r
 }
\ No newline at end of file