@Test public void itShouldReturnLinkToGivenDivision(){ int someDivisionId = 689; Link link = linksBuilder.linkToCcDivision(someDivisionId); assertThat(link.getHref(), endsWith("/api/ccDivisions/"+someDivisionId)); assertThat(link.getRel(), is(SELF)); }
public Link linkToCcDivision(long divisionId) { return linkFor(CcDivisionController.class, divisionId); }
LinksBuilder { public Link linkToCcDivision(long divisionId) { return linkFor(CcDivisionController.class, divisionId); } }
LinksBuilder { public Link linkToCcDivision(long divisionId) { return linkFor(CcDivisionController.class, divisionId); }  }
LinksBuilder { public Link linkToCcDivision(long divisionId) { return linkFor(CcDivisionController.class, divisionId); }  String urlToJudgment(long judgmentId); Link linkToJudgment(long judgmentId); String urlToCcDivision(long divisionId); Link linkToCcDivision(long divisionId); String urlToScDivision(long divisionId); Link linkToScDivision(long divisionId); Link linkToScDivision(long divisionId, String relName); String urlToScChamber(long chamberId); Link linkToScChamber(long chamberId); Link linkToScChamber(long chamberId, String relName); String urlToCommonCourt(long courtId); Link linkToCommonCourt(long courtId); Link linkToCommonCourt(long courtId, String relName); }
LinksBuilder { public Link linkToCcDivision(long divisionId) { return linkFor(CcDivisionController.class, divisionId); }  String urlToJudgment(long judgmentId); Link linkToJudgment(long judgmentId); String urlToCcDivision(long divisionId); Link linkToCcDivision(long divisionId); String urlToScDivision(long divisionId); Link linkToScDivision(long divisionId); Link linkToScDivision(long divisionId, String relName); String urlToScChamber(long chamberId); Link linkToScChamber(long chamberId); Link linkToScChamber(long chamberId, String relName); String urlToCommonCourt(long courtId); Link linkToCommonCourt(long courtId); Link linkToCommonCourt(long courtId, String relName);  }