Skip to content

Commit

Permalink
Update JavacParserTest.java
Browse files Browse the repository at this point in the history
add test for the kotlin 1.8 warnings style
  • Loading branch information
TVDiasDominik committed Jun 21, 2023
1 parent 2733f31 commit 173fb1b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/java/edu/hm/hafner/analysis/parser/JavacParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,5 +299,16 @@ void shouldParseJavaWarningsInMavenCompilerPlugin() {
.hasLineStart(194)
.hasFileName("/home/runner/work/warnings-ng-plugin/warnings-ng-plugin/plugin/target/generated-test-sources/assertj-assertions/io/jenkins/plugins/analysis/core/assertions/Assertions.java");
}

/**
* Parses a warning log written by Gradle containing 2 Kotlin warnings.
* One in kotlin 1.8 style and the other one in the old style.
*/
@Test
void kotlin18WarningStyle() {
Report warnings = parse("kotlin-1_8.txt");

assertThat(warnings).hasSize(2);
}
}

0 comments on commit 173fb1b

Please sign in to comment.