@Test public void testGetPhysicalPort() throws Exception { PhysicalPortId physicalPortId = mock(PhysicalPortId.class); PhysicalPort physicalPort; Class<PhysicalResourceLoader> class1 = PhysicalResourceLoader.class; Method method = class1.getDeclaredMethod("getPhysicalPort",new Class[]{PhysicalPortId.class}); method.setAccessible(true); physicalPort = (PhysicalPort) method.invoke(physicalResourceLoader,physicalPortId); Assert.assertTrue(physicalPort == null); }
protected PhysicalPort getPhysicalPort(PhysicalPortId physicalPortId){ return physicalPortHashMap.get(physicalPortId); }
PhysicalResourceLoader { protected PhysicalPort getPhysicalPort(PhysicalPortId physicalPortId){ return physicalPortHashMap.get(physicalPortId); } }
PhysicalResourceLoader { protected PhysicalPort getPhysicalPort(PhysicalPortId physicalPortId){ return physicalPortHashMap.get(physicalPortId); } PhysicalResourceLoader(DataBroker dataBroker); }
PhysicalResourceLoader { protected PhysicalPort getPhysicalPort(PhysicalPortId physicalPortId){ return physicalPortHashMap.get(physicalPortId); } PhysicalResourceLoader(DataBroker dataBroker); void close(); }
PhysicalResourceLoader { protected PhysicalPort getPhysicalPort(PhysicalPortId physicalPortId){ return physicalPortHashMap.get(physicalPortId); } PhysicalResourceLoader(DataBroker dataBroker); void close(); final static String NODE_PROPERTY; final static String LINK_PROPERTY; final static String EXTERNAL_NETWORK_PROPERTY; final static String HOST_PROPERTY; }