@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(); }
@Test public void readTests_returns_empty_CloseableIterator_when_file_does_not_exist() { assertThat(underTest.readTests(COMPONENT_REF)).isEmpty(); }