@Test public void testGetNodeID() { assertEquals(0, node1.getNodeID()); assertEquals(5, node2.getNodeID()); }
public int getNodeID() { return nodeID; }
Node { public int getNodeID() { return nodeID; } }
Node { public int getNodeID() { return nodeID; } Node(int nodeID, String ip, String label); }
Node { public int getNodeID() { return nodeID; } Node(int nodeID, String ip, String label); String getLabel(); String getIPAddress(); void setLabel(String label); void setIPAddress(String ip); void setNodeID(int nodeID); int getNodeID(); }
Node { public int getNodeID() { return nodeID; } Node(int nodeID, String ip, String label); String getLabel(); String getIPAddress(); void setLabel(String label); void setIPAddress(String ip); void setNodeID(int nodeID); int getNodeID();  }