@Test public void readComponentIssues_it_not_cached() { writer.writeComponentIssues(COMPONENT_REF, of(ISSUE)); assertThat(underTest.readComponentIssues(COMPONENT_REF)) .isNotSameAs(underTest.readComponentIssues(COMPONENT_REF)); }
@Test public void verify_readComponentIssues_returns_Issues() { writer.writeComponentIssues(COMPONENT_REF, of(ISSUE)); try (CloseableIterator<BatchReport.Issue> res = underTest.readComponentIssues(COMPONENT_REF)) { assertThat(res.next()).isEqualTo(ISSUE); assertThat(res.hasNext()).isFalse(); } }