@Test public void readComponentSymbols_it_not_cached() { writer.writeComponentSymbols(COMPONENT_REF, of(SYMBOL)); assertThat(underTest.readComponentSymbols(COMPONENT_REF)) .isNotSameAs(underTest.readComponentSymbols(COMPONENT_REF)); }
@Test public void verify_readComponentSymbols_returns_Issues() { writer.writeComponentSymbols(COMPONENT_REF, of(SYMBOL)); try (CloseableIterator<BatchReport.Symbol> res = underTest.readComponentSymbols(COMPONENT_REF)) { assertThat(res.next()).isEqualTo(SYMBOL); assertThat(res.hasNext()).isFalse(); } }
@Test public void readComponentSymbols_returns_empty_list_if_file_does_not_exist() { assertThat(underTest.readComponentSymbols(COMPONENT_REF)).isEmpty(); }