コード例 #1
0
  @Test
  public void verify_readTests() {
    writer.writeTests(COMPONENT_REF, of(TEST_1, TEST_2));

    CloseableIterator<BatchReport.Test> res = underTest.readTests(COMPONENT_REF);
    assertThat(res).containsExactly(TEST_1, TEST_2);
    res.close();
  }
コード例 #2
0
 @Test
 public void readTests_returns_empty_CloseableIterator_when_file_does_not_exist() {
   assertThat(underTest.readTests(COMPONENT_REF)).isEmpty();
 }