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