@Test public void getSourceReturnsTheSource() { Link underTest = new Link(edgeMock, 2, 1); assertThat(underTest.getSource(), is(2)); }
public int getSource() { return source; }
Link { public int getSource() { return source; } }
Link { public int getSource() { return source; } Link(Edge edge, int source, int target); }
Link { public int getSource() { return source; } 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 getSource() { return source; } Link(Edge edge, int source, int target); int getSource(); int getTarget(); String getType(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }