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.transactionmanager;
10 import org.opendaylight.nemo.user.transactionmanager.TransactionEnd;
12 import static org.mockito.Mockito.mock;
14 import org.junit.Assert;
15 import org.junit.Before;
16 import org.junit.Test;
18 import org.opendaylight.nemo.user.tenantmanager.AAA;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.EndTransactionInput;
21 * Created by wangjunfei on 2015/11/9.
23 public class TransactionEndTest {
25 private EndTransactionInput input;
26 private TransactionEnd end;
29 public void setUp() throws Exception {
30 aaa = mock(AAA.class);
31 input = mock(EndTransactionInput.class);
32 end = mock(TransactionEnd.class);
36 public void testTransactionend() throws Exception {
37 Assert.assertNull(end.transactionend(aaa, input));