Add renderer test files
[nemo.git] / nemo-renderers / openflow-renderer / src / test / java / org.opendaylight / nemo.renderer.openflow / FlowTableManagerTest.java
1 package org.opendaylight.nemo.renderer.openflow;
2
3 import junit.framework.TestCase;
4 import org.junit.Before;
5 import org.junit.Test;
6 import org.junit.Assert;
7 import org.opendaylight.nemo.renderer.openflow.FlowTableManager;
8 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
9 import org.opendaylight.nemo.renderer.openflow.ResourceManager;
10 import org.opendaylight.nemo.renderer.openflow.entity.ResourceBean;
11
12 import static org.junit.Assert.*;
13 import static org.mockito.Mockito.*;
14 /**
15  * Created by zhangmeng on 2015/11/11.
16  */
17 public class FlowTableManagerTest extends TestCase {
18     private FlowTableManager flowTableManager;
19     private ResourceManager resourceManager;
20     private DataBroker dataProvider;
21     @Before
22     public void setUp() throws Exception {
23         resourceManager = mock(ResourceManager.class);
24         dataProvider = mock(DataBroker.class);
25
26         flowTableManager = new FlowTableManager(dataProvider,resourceManager);
27     }
28
29     @Test
30     public void testClose() throws Exception {
31         flowTableManager.close();
32         Assert.assertNotNull(flowTableManager);
33     }
34 }