Skip to content

Commit 2bffe73

Browse files
committed
Fix empty diff test failure from upstream JavaSourceSet marker updates
openrewrite/rewrite#7202 added JavaSourceSet marker updates to ChangeDependencyGroupIdAndArtifactId, which now modifies Java files' markers without changing text content. This causes the test framework to flag "empty diff" errors for Java source specs without explicit `after` text. Provide explicit `after` text (identical to `before`) for the Java source file in the affected test to accept the marker-only change. See openrewrite/rewrite#7349 for the upstream issue.
1 parent db5fb4a commit 2bffe73

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/test/java/org/openrewrite/hibernate/MigrateToHibernate61Test.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ void groupIdHibernateOrmRenamed() {
149149
//language=java
150150
srcMainJava(
151151
java("""
152+
public class TestApplication {
153+
}
154+
""",
155+
"""
152156
public class TestApplication {
153157
}
154158
"""

0 commit comments

Comments
 (0)