@Test public void filterCapabilityListsReturnsEachCapabilityListOnce() { Urlset content1 = new Urlset(new RsMd(Capability.DESCRIPTION.xmlValue)); content1.addItem(new UrlItem("http: content1.addItem(new UrlItem("http: Urlset content2 = new Urlset(new RsMd(Capability.DESCRIPTION.xmlValue)); content2.addItem(new UrlItem("http: content2.addItem(new UrlItem("http: Map<URI, Result<?>> resultMap = new HashMap<>(); Result<Object> result1 = new Result<>(URI.create("http: result1.accept(content1); resultMap.put(URI.create("http: Result<Object> result2 = new Result<>(URI.create("http: result2.accept(content2); resultMap.put(URI.create("http: ResultIndex resultIndex = mock(ResultIndex.class); given(resultIndex.getResultMap()).willReturn(resultMap); SetListBase setListBase = new SetListBase(resultIndex, new Interpreter()); List<SetItemView> setDetails = setListBase.getSetDetails(); assertThat(setDetails, Matchers.hasSize(2)); }
public List<SetItemView> getSetDetails() { return setDetails; }
SetListBase { public List<SetItemView> getSetDetails() { return setDetails; } }
SetListBase { public List<SetItemView> getSetDetails() { return setDetails; } SetListBase(ResultIndex resultIndex);  SetListBase(ResultIndex resultIndex, Interpreter interpreter); }
SetListBase { public List<SetItemView> getSetDetails() { return setDetails; } SetListBase(ResultIndex resultIndex);  SetListBase(ResultIndex resultIndex, Interpreter interpreter); List<SetItemView> getSetDetails(); List<ResultView> getExplorationAttempts(); @JsonInclude(JsonInclude.Include.NON_EMPTY) List<ResultView> getResultsWithExceptions(); @JsonInclude(JsonInclude.Include.NON_EMPTY) Set<String> getInvalidUris(); }
SetListBase { public List<SetItemView> getSetDetails() { return setDetails; } SetListBase(ResultIndex resultIndex);  SetListBase(ResultIndex resultIndex, Interpreter interpreter); List<SetItemView> getSetDetails(); List<ResultView> getExplorationAttempts(); @JsonInclude(JsonInclude.Include.NON_EMPTY) List<ResultView> getResultsWithExceptions(); @JsonInclude(JsonInclude.Include.NON_EMPTY) Set<String> getInvalidUris();  }