2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
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
8 package org.opendaylight.nemo.user.vnspacemanager.instancecheck;
10 import org.junit.Assert;
11 import org.junit.Before;
12 import org.junit.Test;
14 import static org.mockito.Mockito.mock;
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.Node;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.users.User;
22 import java.util.List;
25 * Created by wangjunfei on 2015/11/10.
27 public class NodeInstanceCheckTest {
28 private TenantManage tenantManage;
29 private UserId userId;
31 private NodeInstanceCheck nodeInstanceCheck;
34 public void setUp() throws Exception {
35 tenantManage = mock(TenantManage.class);
36 userId = mock(UserId.class);
37 node = mock(Node.class);
38 nodeInstanceCheck = mock(NodeInstanceCheck.class);
42 public void testCheckNodeInstance() throws Exception {
43 Assert.assertNull(nodeInstanceCheck.checkNodeInstance(userId,node));