Skip to content

Commit

Permalink
openrewrite#936 also verify that Kotlin source files are found unter …
Browse files Browse the repository at this point in the history
…src/test/java
  • Loading branch information
reisners committed Jan 28, 2025
1 parent 595b27a commit 04d2104
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/test/java/org/openrewrite/maven/KotlinIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ class KotlinIT {
@MavenTest
void basic_kotlin_project(MavenExecutionResult result) {
assertThat(result)
.isSuccessful()
.out()
.debug()
.anySatisfy(line -> assertThat(line).contains("Scanned 1 kotlin source files in main scope."))
.anySatisfy(line -> assertThat(line).contains("org.openrewrite.kotlin.format.AutoFormat"));
.isSuccessful()
.out()
.debug()
.anySatisfy(line -> assertThat(line).contains("Scanned 1 kotlin source files in main scope."))
.anySatisfy(line -> assertThat(line).contains("Scanned 1 kotlin source files in test scope."))
.anySatisfy(line -> assertThat(line).contains("org.openrewrite.kotlin.format.AutoFormat"));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package sample

class MyTest {
}

0 comments on commit 04d2104

Please sign in to comment.