@Test public void itShouldReturnUrlToGivenCourt(){ int someCourtId = 321321; String actualUrl = linksBuilder.urlToCommonCourt(someCourtId); assertTrue(actualUrl.endsWith("/api/commonCourts/"+someCourtId)); }
public String urlToCommonCourt(long courtId) { return urlToElement(CommonCourtController.class, courtId); }
LinksBuilder { public String urlToCommonCourt(long courtId) { return urlToElement(CommonCourtController.class, courtId); } }
LinksBuilder { public String urlToCommonCourt(long courtId) { return urlToElement(CommonCourtController.class, courtId); }  }
LinksBuilder { public String urlToCommonCourt(long courtId) { return urlToElement(CommonCourtController.class, courtId); }  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 String urlToCommonCourt(long courtId) { return urlToElement(CommonCourtController.class, courtId); }  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);  }