@Test public void build() { List<Long> judgmentIds = Lists.newArrayList(123L, 334L, 3344L, 11111L); when(uriComponentsBuilder.build().encode().toString()).thenReturn("http: DumpDeletedJudgmentsView dumpDeletedJudgmentsView = representationBuilder.build(judgmentIds, uriComponentsBuilder); assertNotNull(dumpDeletedJudgmentsView.getLinks()); assertEquals(1, dumpDeletedJudgmentsView.getLinks().size()); assertEquals("http: assertEquals(ApiConstants.SELF, dumpDeletedJudgmentsView.getLinks().get(0).getRel()); assertNull(dumpDeletedJudgmentsView.getInfo()); assertNull(dumpDeletedJudgmentsView.getQueryTemplate()); assertEquals(judgmentIds, dumpDeletedJudgmentsView.getItems()); }
public DumpDeletedJudgmentsView build(List<Long> deletedJudgmentIds, UriComponentsBuilder uriComponentsBuilder){ Preconditions.checkNotNull(deletedJudgmentIds); Preconditions.checkNotNull(uriComponentsBuilder); DumpDeletedJudgmentsView dumpDeletedJudgmentsView = new DumpDeletedJudgmentsView(); dumpDeletedJudgmentsView.setLinks(toLinks(uriComponentsBuilder)); dumpDeletedJudgmentsView.setItems(deletedJudgmentIds); return dumpDeletedJudgmentsView; }
DumpDeletedJudgmentsSuccessRepresentationBuilder { public DumpDeletedJudgmentsView build(List<Long> deletedJudgmentIds, UriComponentsBuilder uriComponentsBuilder){ Preconditions.checkNotNull(deletedJudgmentIds); Preconditions.checkNotNull(uriComponentsBuilder); DumpDeletedJudgmentsView dumpDeletedJudgmentsView = new DumpDeletedJudgmentsView(); dumpDeletedJudgmentsView.setLinks(toLinks(uriComponentsBuilder)); dumpDeletedJudgmentsView.setItems(deletedJudgmentIds); return dumpDeletedJudgmentsView; } }
DumpDeletedJudgmentsSuccessRepresentationBuilder { public DumpDeletedJudgmentsView build(List<Long> deletedJudgmentIds, UriComponentsBuilder uriComponentsBuilder){ Preconditions.checkNotNull(deletedJudgmentIds); Preconditions.checkNotNull(uriComponentsBuilder); DumpDeletedJudgmentsView dumpDeletedJudgmentsView = new DumpDeletedJudgmentsView(); dumpDeletedJudgmentsView.setLinks(toLinks(uriComponentsBuilder)); dumpDeletedJudgmentsView.setItems(deletedJudgmentIds); return dumpDeletedJudgmentsView; }  }
DumpDeletedJudgmentsSuccessRepresentationBuilder { public DumpDeletedJudgmentsView build(List<Long> deletedJudgmentIds, UriComponentsBuilder uriComponentsBuilder){ Preconditions.checkNotNull(deletedJudgmentIds); Preconditions.checkNotNull(uriComponentsBuilder); DumpDeletedJudgmentsView dumpDeletedJudgmentsView = new DumpDeletedJudgmentsView(); dumpDeletedJudgmentsView.setLinks(toLinks(uriComponentsBuilder)); dumpDeletedJudgmentsView.setItems(deletedJudgmentIds); return dumpDeletedJudgmentsView; }  DumpDeletedJudgmentsView build(List<Long> deletedJudgmentIds, UriComponentsBuilder uriComponentsBuilder); }
DumpDeletedJudgmentsSuccessRepresentationBuilder { public DumpDeletedJudgmentsView build(List<Long> deletedJudgmentIds, UriComponentsBuilder uriComponentsBuilder){ Preconditions.checkNotNull(deletedJudgmentIds); Preconditions.checkNotNull(uriComponentsBuilder); DumpDeletedJudgmentsView dumpDeletedJudgmentsView = new DumpDeletedJudgmentsView(); dumpDeletedJudgmentsView.setLinks(toLinks(uriComponentsBuilder)); dumpDeletedJudgmentsView.setItems(deletedJudgmentIds); return dumpDeletedJudgmentsView; }  DumpDeletedJudgmentsView build(List<Long> deletedJudgmentIds, UriComponentsBuilder uriComponentsBuilder);  }