@Test public void testCreateNodeId() throws Exception{ Class<FlowUtils> class1 = FlowUtils.class; Method method = class1.getDeclaredMethod("createNodeId", new Class[]{PhysicalNodeId.class}); method.setAccessible(true); PhysicalNodeId physicalNodeId = mock(PhysicalNodeId.class); NodeId result; when(physicalNodeId.getValue()).thenReturn(new String("test")); result = (NodeId) method.invoke(flowUtils,physicalNodeId); Assert.assertTrue(result != null); }
private NodeId createNodeId(PhysicalNodeId physicalNodeId) { return new NodeId(physicalNodeId.getValue()); }
FlowUtils implements AutoCloseable { private NodeId createNodeId(PhysicalNodeId physicalNodeId) { return new NodeId(physicalNodeId.getValue()); } }
FlowUtils implements AutoCloseable { private NodeId createNodeId(PhysicalNodeId physicalNodeId) { return new NodeId(physicalNodeId.getValue()); } FlowUtils(DataBroker dataBroker,
                     PacketProcessingService packetProcessingService,
                     PhyConfigLoader phyConfigLoader); }
FlowUtils implements AutoCloseable { private NodeId createNodeId(PhysicalNodeId physicalNodeId) { return new NodeId(physicalNodeId.getValue()); } FlowUtils(DataBroker dataBroker,
                     PacketProcessingService packetProcessingService,
                     PhyConfigLoader phyConfigLoader); void init(List<PhysicalNode> physicalNodes); void handleArp(PacketReceived packetReceived, NodeConnectorRef ingress); @Override void close(); void assignMPLSLabelForPPath(PhysicalPath physicalPath,
                  List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.generic.physical.network.rev151010.physical.network.physical.links.PhysicalLink> physicalLinksList); }
FlowUtils implements AutoCloseable { private NodeId createNodeId(PhysicalNodeId physicalNodeId) { return new NodeId(physicalNodeId.getValue()); } FlowUtils(DataBroker dataBroker,
                     PacketProcessingService packetProcessingService,
                     PhyConfigLoader phyConfigLoader); void init(List<PhysicalNode> physicalNodes); void handleArp(PacketReceived packetReceived, NodeConnectorRef ingress); @Override void close(); void assignMPLSLabelForPPath(PhysicalPath physicalPath,
                  List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.generic.physical.network.rev151010.physical.network.physical.links.PhysicalLink> physicalLinksList);  }