@Test public void testGetPhysicalNodeIdentifier() throws Exception { PhysicalNodeKey physicalNodeKey = mock(PhysicalNodeKey.class); Class<DataBrokerAdapter> class1 = DataBrokerAdapter.class; Method method = class1.getDeclaredMethod("getPhysicalNodeIdentifier",new Class[]{PhysicalNodeKey.class}); method.setAccessible(true); Object object = method.invoke(dataBrokerAdapter,physicalNodeKey); Assert.assertTrue(object != null); }
private InstanceIdentifier<PhysicalNode> getPhysicalNodeIdentifier(PhysicalNodeKey physicalNodeKey) { return InstanceIdentifier .builder(PhysicalNetwork.class) .child(PhysicalNodes.class) .child(PhysicalNode.class, physicalNodeKey) .build(); }
DataBrokerAdapter { private InstanceIdentifier<PhysicalNode> getPhysicalNodeIdentifier(PhysicalNodeKey physicalNodeKey) { return InstanceIdentifier .builder(PhysicalNetwork.class) .child(PhysicalNodes.class) .child(PhysicalNode.class, physicalNodeKey) .build(); } }
DataBrokerAdapter { private InstanceIdentifier<PhysicalNode> getPhysicalNodeIdentifier(PhysicalNodeKey physicalNodeKey) { return InstanceIdentifier .builder(PhysicalNetwork.class) .child(PhysicalNodes.class) .child(PhysicalNode.class, physicalNodeKey) .build(); } DataBrokerAdapter(DataBroker dataBroker); }
DataBrokerAdapter { private InstanceIdentifier<PhysicalNode> getPhysicalNodeIdentifier(PhysicalNodeKey physicalNodeKey) { return InstanceIdentifier .builder(PhysicalNetwork.class) .child(PhysicalNodes.class) .child(PhysicalNode.class, physicalNodeKey) .build(); } DataBrokerAdapter(DataBroker dataBroker);  }
DataBrokerAdapter { private InstanceIdentifier<PhysicalNode> getPhysicalNodeIdentifier(PhysicalNodeKey physicalNodeKey) { return InstanceIdentifier .builder(PhysicalNetwork.class) .child(PhysicalNodes.class) .child(PhysicalNode.class, physicalNodeKey) .build(); } DataBrokerAdapter(DataBroker dataBroker);   }