Add partical test files
[nemo.git] / nemo-impl / src / test / java / org / opendaylight / nemo / user / vnspacemanager / instancecheck / OperationInstanceCheckTest.java
1 /*
2  * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.nemo.user.vnspacemanager.instancecheck;
9
10 import org.junit.Assert;
11 import org.junit.Before;
12 import org.junit.Test;
13
14 import static org.mockito.Mockito.mock;
15
16 import org.opendaylight.nemo.user.tenantmanager.TenantManage;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.UserId;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.Objects;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.objects.Connection;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.objects.Flow;
21 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.objects.Node;
22 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.operations.Operation;
23 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.users.User;
24
25 import java.util.List;
26 /**
27  * Created by wangjunfei on 2015/11/10.
28  */
29 public class OperationInstanceCheckTest {
30     private OperationInstanceCheck operationInstanceCheck;
31     private TenantManage tenantManage;
32     private UserId userId;
33     private Operation operation;
34
35     @org.junit.Before
36     public void setUp() throws Exception {
37         tenantManage = mock(TenantManage.class);
38         userId = mock(UserId.class);
39         operation = mock(Operation.class);
40         operationInstanceCheck = mock(OperationInstanceCheck.class);
41     }
42
43     @org.junit.Test
44     public void testCheckOperationInstance() throws Exception {
45         Assert.assertNull(operationInstanceCheck.checkOperationInstance(userId,operation));
46     }
47 }