@Test public void itShouldReturnUrlToGivenJudgment(){ int someJudgmentId = 333; String actualUrl = linksBuilder.urlToJudgment(someJudgmentId); assertTrue(actualUrl.endsWith("/api/judgments/"+someJudgmentId)); }
public String urlToJudgment(long judgmentId){ return urlToElement(JudgmentController.class, judgmentId); }
LinksBuilder { public String urlToJudgment(long judgmentId){ return urlToElement(JudgmentController.class, judgmentId); } }
LinksBuilder { public String urlToJudgment(long judgmentId){ return urlToElement(JudgmentController.class, judgmentId); }  }
LinksBuilder { public String urlToJudgment(long judgmentId){ return urlToElement(JudgmentController.class, judgmentId); }  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 urlToJudgment(long judgmentId){ return urlToElement(JudgmentController.class, judgmentId); }  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);  }