2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.nemo.user.vnspacemanager.structurestyle.deleteintent;
\r
9 import static org.mockito.Mockito.mock;
\r
11 import org.junit.Assert;
\r
12 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
\r
13 import org.opendaylight.nemo.user.tenantmanager.TenantManage;
\r
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.OperationId;
\r
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.UserId;
\r
16 public class DeleteOperationTest{
\r
17 private DataBroker dataBroker;
\r
18 private TenantManage tenantManage;
\r
19 private UserId userId;
\r
20 private OperationId operationId;
\r
21 private DeleteOperation deleteoperation;
\r
23 public void setUp() throws Exception{
\r
24 dataBroker=mock(DataBroker.class);
\r
25 tenantManage=mock(TenantManage.class);
\r
26 userId=mock(UserId.class);
\r
27 operationId=mock(OperationId.class);
\r
28 deleteoperation=mock(DeleteOperation.class);
\r
31 public void DeleteOperationhandlingTest(){
\r
32 Assert.assertNull(deleteoperation.DeleteOperationhandling(userId,operationId));
\r