-/*
- * 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 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;
-
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
-
-import static org.mockito.Mockito.mock;
-
-/**
- * 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