package org.opendaylight.controller.subnets.northbound; import java.util.ArrayList; import org.junit.Assert; import org.junit.Test; import org.opendaylight.controller.switchmanager.SubnetConfig; public class SubnetsNorthboundTest { @Test public void testSubnetConfigs() { SubnetConfigs sc1 = new SubnetConfigs(null); Assert.assertNull(sc1.getSubnetConfig()); ArrayList list = new ArrayList(); SubnetConfig s1 = new SubnetConfig(); list.add(s1); sc1.setSubnetConfig(list); Assert.assertTrue(sc1.getSubnetConfig().equals(list)); sc1.setSubnetConfig(null); Assert.assertNull(sc1.getSubnetConfig()); } }