Modify nemo-impl partical test files 26/30426/1
authorGaoJie <gaojieusy@163.com>
Tue, 1 Dec 2015 09:52:32 +0000 (17:52 +0800)
committerGaoJie <gaojieusy@163.com>
Tue, 1 Dec 2015 09:54:03 +0000 (17:54 +0800)
Change-Id: I6620ac34d6ef96a947f9b0693362dd0a23841a80
Signed-off-by: GaoJie <gaojieusy@163.com>
nemo-impl/src/test/java/org/opendaylight/nemo/user/vnspacemanager/structurestyle/deleteintent/DeleteResultTest.java

index b2cce97c51416868d3d987ce546d066206e79624..df3733f35bb8910c44555c110d0d3ee15de013f1 100644 (file)
@@ -1,3 +1,10 @@
+/*\r
+ * Copyright (c) 2015 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.user.vnspacemanager.structurestyle.deleteintent;\r
 import org.opendaylight.nemo.user.vnspacemanager.structurestyle.*;\r
 import static org.mockito.Mockito.mock;\r
@@ -6,6 +13,8 @@ import org.junit.Before;
 import org.junit.Test;\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.structure.style.nemo.delete.input.Results;\r
+import java.util.*;\r
+import static org.mockito.Mockito.*;\r
 public class DeleteResultTest{\r
        private UserId userId;\r
     private    Results results;\r
@@ -14,8 +23,10 @@ public class DeleteResultTest{
        public void setUp()throws Exception{\r
                userId=mock(UserId.class);\r
                results=mock(Results.class);\r
-               deleteresult=mock(DeleteResult.class);\r
+               deleteresult=new DeleteResult();\r
+               \r
        }\r
+       @org.junit.Test\r
        public void DeleteResultHandlingTest() throws Exception{\r
                Assert.assertNull(deleteresult.DeleteResultHandling(userId,results));\r
        }\r