コード例 #1
0
  @Test
  public void readComponentSymbols_it_not_cached() {
    writer.writeComponentSymbols(COMPONENT_REF, of(SYMBOL));

    assertThat(underTest.readComponentSymbols(COMPONENT_REF))
        .isNotSameAs(underTest.readComponentSymbols(COMPONENT_REF));
  }
コード例 #2
0
  @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();
    }
  }
コード例 #3
0
 @Test
 public void readComponentSymbols_returns_empty_list_if_file_does_not_exist() {
   assertThat(underTest.readComponentSymbols(COMPONENT_REF)).isEmpty();
 }