Examples of highlightingTypeFor()


Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.highlightingTypeFor()

        .put("sonar.sources", "src")
        .build())
      .start();

    InputFile file = result.inputFile("src/sample.xoo");
    assertThat(result.highlightingTypeFor(file, 0)).containsExactly(TypeOfText.STRING);
    assertThat(result.highlightingTypeFor(file, 9)).containsExactly(TypeOfText.STRING);
    assertThat(result.highlightingTypeFor(file, 10)).isEmpty();
    assertThat(result.highlightingTypeFor(file, 11)).containsExactly(TypeOfText.KEYWORD);

  }
View Full Code Here

Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.highlightingTypeFor()

        .build())
      .start();

    InputFile file = result.inputFile("src/sample.xoo");
    assertThat(result.highlightingTypeFor(file, 0)).containsExactly(TypeOfText.STRING);
    assertThat(result.highlightingTypeFor(file, 9)).containsExactly(TypeOfText.STRING);
    assertThat(result.highlightingTypeFor(file, 10)).isEmpty();
    assertThat(result.highlightingTypeFor(file, 11)).containsExactly(TypeOfText.KEYWORD);

  }
View Full Code Here

Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.highlightingTypeFor()

      .start();

    InputFile file = result.inputFile("src/sample.xoo");
    assertThat(result.highlightingTypeFor(file, 0)).containsExactly(TypeOfText.STRING);
    assertThat(result.highlightingTypeFor(file, 9)).containsExactly(TypeOfText.STRING);
    assertThat(result.highlightingTypeFor(file, 10)).isEmpty();
    assertThat(result.highlightingTypeFor(file, 11)).containsExactly(TypeOfText.KEYWORD);

  }

  @Test
View Full Code Here

Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.highlightingTypeFor()

    InputFile file = result.inputFile("src/sample.xoo");
    assertThat(result.highlightingTypeFor(file, 0)).containsExactly(TypeOfText.STRING);
    assertThat(result.highlightingTypeFor(file, 9)).containsExactly(TypeOfText.STRING);
    assertThat(result.highlightingTypeFor(file, 10)).isEmpty();
    assertThat(result.highlightingTypeFor(file, 11)).containsExactly(TypeOfText.KEYWORD);

  }

  @Test
  public void computeSyntaxHighlightingOnBigFile() throws IOException {
View Full Code Here

Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.highlightingTypeFor()

        .build())
      .start();
    System.out.println("Duration: " + (System.currentTimeMillis() - start));

    InputFile file = result.inputFile("src/sample.xoo");
    assertThat(result.highlightingTypeFor(file, 0)).containsExactly(TypeOfText.STRING);

  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.