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.structurestyle.deleteintent;
9 import static org.mockito.Mockito.mock;
11 import org.junit.Assert;
12 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
13 import org.opendaylight.nemo.user.tenantmanager.TenantManage;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.ConnectionId;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.UserId;
16 public class DeleteConnectionTest{
17 private DataBroker dataBroker;
18 private TenantManage tenantManage;
19 private DeleteConnection deleteconnection;
20 private UserId userId;
21 private ConnectionId connectionID;
23 public void setUp() throws Exception {
24 dataBroker=mock(DataBroker.class);
25 tenantManage=mock(TenantManage.class);
26 deleteconnection=mock(DeleteConnection.class);
27 userId=mock(UserId.class);
28 connectionID=mock(ConnectionId.class);
31 public void DeleteConnectionHandlingTest() throws Exception{
32 Assert.assertNull(deleteconnection.DeleteConnectionHandling(userId,connectionID));