Skip to content

Commit

Permalink
Add disabled AutoFormat test which reproduces issue 63
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Oct 28, 2020
1 parent abdab39 commit ba4d505
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,4 +430,24 @@ interface AutoFormatTest : RefactorVisitorTest {
}
"""
)

@Disabled("https://github.com/openrewrite/rewrite/issues/63")
@Test
fun separatesStatementsWithEmptyFormatting(jp: JavaParser) = assertRefactored(
jp,
visitorsMapped = listOf { a -> AutoFormat(a) },
before = """
public class D {public String foo() {String foo = "foo";foo = foo + foo;return foo;}}
""",
after = """
public class D {
public String foo() {
String foo = "foo";
foo = foo + foo;
return foo;
}
}
"""
)
}

0 comments on commit ba4d505

Please sign in to comment.