Skip to content

Commit 1636d04

Browse files
Apply suggestion from @github-actions[bot]
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a7c8a82 commit 1636d04

File tree

1 file changed

+14
-14
lines changed
  • rewrite-kotlin/src/test/java/org/openrewrite/kotlin/tree

1 file changed

+14
-14
lines changed

rewrite-kotlin/src/test/java/org/openrewrite/kotlin/tree/KTSTest.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ fun two() = "two"
5353
),
5454
kotlinScript(
5555
"""
56-
import org.example.one
57-
one()
58-
""",
59-
spec -> spec.afterRecipe(cu -> {
60-
assertThat(cu.getTypesInUse().getUsedMethods())
61-
.singleElement()
62-
.satisfies(m -> {
63-
assertThat(m.getDeclaringType())
64-
.satisfies(it -> {
65-
assertThat(it.getFullyQualifiedName()).isEqualTo("org.example.openRewriteFile1Kt");
66-
assertThat(it.getMethods()).hasSize(2);
67-
});
68-
});
69-
})
56+
import org.example.one
57+
one()
58+
""",
59+
spec -> spec.afterRecipe(cu ->
60+
assertThat(cu.getTypesInUse().getUsedMethods())
61+
.singleElement()
62+
.satisfies(m -> {
63+
assertThat(m.getDeclaringType())
64+
.satisfies(it -> {
65+
assertThat(it.getFullyQualifiedName()).isEqualTo("org.example.openRewriteFile1Kt");
66+
assertThat(it.getMethods()).hasSize(2);
67+
});
68+
})
69+
)
7070
)
7171
);
7272
}

0 commit comments

Comments
 (0)