Skip to content

Commit

Permalink
Polish. Added test to change escaped types.
Browse files Browse the repository at this point in the history
  • Loading branch information
traceyyoshima committed Dec 1, 2023
1 parent 61b734a commit 7f5dd29
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/test/java/org/openrewrite/kotlin/ChangeTypeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,32 @@ class A {
);
}

@Test
void changeEscapedType() {
rewriteRun(
kotlin(
"""
package a.b
class Original
"""),
kotlin(
"""
import a.b.Original
class A {
val type : `Original` = Original()
}
""",
"""
import x.y.Target
class A {
val type : `Target` = Target()
}
"""
)
);
}

@Test
void changeImportAlias() {
Expand Down

0 comments on commit 7f5dd29

Please sign in to comment.