@Test public void verify_readComponentSyntaxHighlighting() { writer.writeComponentSyntaxHighlighting( COMPONENT_REF, of(SYNTAX_HIGHLIGHTING_1, SYNTAX_HIGHLIGHTING_2)); CloseableIterator<BatchReport.SyntaxHighlighting> res = underTest.readComponentSyntaxHighlighting(COMPONENT_REF); assertThat(res).containsExactly(SYNTAX_HIGHLIGHTING_1, SYNTAX_HIGHLIGHTING_2); res.close(); }
@Test public void readComponentSyntaxHighlighting_returns_empty_CloseableIterator_when_file_does_not_exist() { assertThat(underTest.readComponentSyntaxHighlighting(COMPONENT_REF)).isEmpty(); }