Bug 4998: Intermittent VNMappingException in NIC BoD flow
[nemo.git] / nemo-tools / sandbox / src / test / java / org / opendaylight / nemo / tool / sandbox / CliTest.java
1 /*
2  * Copyright (c) 2016 Huawei, Inc. and others. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.nemo.tool.sandbox;
9
10 import junit.framework.TestCase;
11 import org.junit.Before;
12 import org.junit.Test;
13
14 import static org.junit.Assert.*;
15 import asg.cliche.Command;
16 import asg.cliche.Shell;
17 import asg.cliche.ShellDependent;
18 import static org.mockito.Mockito.*;
19 /**
20  * Created by zhangmeng on 2016/1/14.
21  */
22 public class CliTest extends TestCase {
23     private Cli cli;
24     @Before
25     public void setUp() throws Exception {
26         cli = new Cli();
27     }
28
29     @Test
30     public void testCliSetShell() throws Exception {
31         Shell shell = mock(Shell.class);
32         cli.cliSetShell(shell);
33     }
34
35     @Test
36     public void testInstall() throws Exception {
37         cli.install();
38     }
39
40     @Test
41     public void testUninstall() throws Exception {
42         cli.uninstall();
43     }
44 }