Skip to content

Commit 2bed89d

Browse files
committed
Fix XmlUnit test to no longer break on new minor or patch releases
1 parent 1a882f4 commit 2bed89d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/java/org/openrewrite/java/testing/junit5/UseXMLUnitLegacyTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
class UseXMLUnitLegacyTest implements RewriteTest {
2727
@Override
2828
public void defaults(RecipeSpec spec) {
29-
spec
30-
.recipeFromResources("org.openrewrite.java.testing.junit5.UseXMLUnitLegacy");
29+
spec.recipeFromResources("org.openrewrite.java.testing.junit5.UseXMLUnitLegacy");
3130
}
3231

3332
@Test
@@ -52,11 +51,10 @@ void shouldMigrateMavenDependency() {
5251
</project>
5352
""",
5453
spec -> spec.after(after ->
55-
assertThat(after)
56-
.containsPattern("<version>(2.10.+)</version>")
57-
.actual())
54+
assertThat(after).containsPattern("<version>(2.+)</version>").actual())
5855
)
5956
)
6057
);
6158
}
6259
}
60+

0 commit comments

Comments
 (0)