@Test public void getTargetReturnsTheTarget() { Link underTest = new Link(edgeMock, 2, 1); assertThat(underTest.getTarget(), is(1)); }
public int getTarget() { return target; }
Link { public int getTarget() { return target; } }
Link { public int getTarget() { return target; } Link(Edge edge, int source, int target); }
Link { public int getTarget() { return target; } Link(Edge edge, int source, int target); int getSource(); int getTarget(); String getType(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
Link { public int getTarget() { return target; } Link(Edge edge, int source, int target); int getSource(); int getTarget(); String getType(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }