1 package org.opendaylight.controller.flowprogrammer.northbound;
3 import java.util.ArrayList;
5 import org.junit.Assert;
7 import org.opendaylight.controller.forwardingrulesmanager.FlowConfig;
9 public class FlowProgrammerNorthboundTest {
12 public void testFlowConfigs() {
13 FlowConfigs fc = new FlowConfigs(null);
14 Assert.assertNull(fc.getFlowConfig());
16 FlowConfig conf = new FlowConfig();
17 FlowConfig conf2 = new FlowConfig();
18 ArrayList<FlowConfig> list = new ArrayList<FlowConfig>();
22 FlowConfigs fc2 = new FlowConfigs(list);
23 Assert.assertTrue(fc2.getFlowConfig().equals(list));
25 fc.setFlowConfig(list);
26 Assert.assertTrue(fc.getFlowConfig().equals(fc2.getFlowConfig()));
28 fc.setFlowConfig(null);
29 Assert.assertNull(fc.getFlowConfig());