@Test public void testGetPhysicalLink() throws Exception { PhysicalLinkId physicalLinkId = mock(PhysicalLinkId.class); PhysicalLink physicalLink; Class<PhyConfigLoader> class1 = PhyConfigLoader.class; Method method = class1.getDeclaredMethod("getPhysicalLink",new Class[]{PhysicalLinkId.class}); method.setAccessible(true); physicalLink = (PhysicalLink) method.invoke(phyConfigLoader,physicalLinkId); Assert.assertTrue(physicalLink == null); }
protected PhysicalLink getPhysicalLink(PhysicalLinkId physicalLinkId){ return physicalLinkHashMap.get(physicalLinkId); }
PhyConfigLoader { protected PhysicalLink getPhysicalLink(PhysicalLinkId physicalLinkId){ return physicalLinkHashMap.get(physicalLinkId); } }
PhyConfigLoader { protected PhysicalLink getPhysicalLink(PhysicalLinkId physicalLinkId){ return physicalLinkHashMap.get(physicalLinkId); } PhyConfigLoader(DataBroker dataBroker); }
PhyConfigLoader { protected PhysicalLink getPhysicalLink(PhysicalLinkId physicalLinkId){ return physicalLinkHashMap.get(physicalLinkId); } PhyConfigLoader(DataBroker dataBroker); Table<PhysicalNodeId, PhysicalPortId, MacAddress> getExternalNetworkMac(); void close(); }
PhyConfigLoader { protected PhysicalLink getPhysicalLink(PhysicalLinkId physicalLinkId){ return physicalLinkHashMap.get(physicalLinkId); } PhyConfigLoader(DataBroker dataBroker); Table<PhysicalNodeId, PhysicalPortId, MacAddress> getExternalNetworkMac(); void close(); final static String NODE_PROPERTY; final static String LINK_PROPERTY; final static String EXTERNAL_NETWORK_MAC_PROPERTY; final static String HOST_PROPERTY; }