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.FlowId;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.UserId;
16 public class DeleteFlowTest{
17 private DataBroker dataBroker;
18 private TenantManage tenantManage;
19 private DeleteFlow deleteflow;
20 private UserId userId;
21 private FlowId flowId;
23 public void setUp() throws Exception {
24 dataBroker=mock(DataBroker.class);
25 tenantManage=mock(TenantManage.class);
26 deleteflow=mock(DeleteFlow.class);
27 userId=mock(UserId.class);
28 flowId=mock(FlowId.class);
31 public void DeleteFlowHandlingTest() throws Exception{
32 Assert.assertNull(deleteflow.DeleteFlowHandling(userId,flowId));