@Test public void testGetPhysicalNode() throws Exception { PhysicalNodeId physicalNodeId = mock(PhysicalNodeId.class); PhysicalNode physicalNode ; Class<PhyConfigLoader> class1 = PhyConfigLoader.class; Method method = class1.getDeclaredMethod("getPhysicalNode",new Class[]{PhysicalNodeId.class}); method.setAccessible(true); physicalNode = (PhysicalNode) method.invoke(phyConfigLoader,physicalNodeId); Assert.assertTrue( physicalNode == null); }
protected PhysicalNode getPhysicalNode(PhysicalNodeId physicalNodeId){ return physicalNodeHashMap.get(physicalNodeId); }
PhyConfigLoader { protected PhysicalNode getPhysicalNode(PhysicalNodeId physicalNodeId){ return physicalNodeHashMap.get(physicalNodeId); } }
PhyConfigLoader { protected PhysicalNode getPhysicalNode(PhysicalNodeId physicalNodeId){ return physicalNodeHashMap.get(physicalNodeId); } PhyConfigLoader(DataBroker dataBroker); }
PhyConfigLoader { protected PhysicalNode getPhysicalNode(PhysicalNodeId physicalNodeId){ return physicalNodeHashMap.get(physicalNodeId); } PhyConfigLoader(DataBroker dataBroker); Table<PhysicalNodeId, PhysicalPortId, MacAddress> getExternalNetworkMac(); void close(); }
PhyConfigLoader { protected PhysicalNode getPhysicalNode(PhysicalNodeId physicalNodeId){ return physicalNodeHashMap.get(physicalNodeId); } 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; }