Skip to content

Commit

Permalink
Alter assertion to tolerate new arquillian releases
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Jan 11, 2025
1 parent 80fc7f3 commit 18acebb
Showing 1 changed file with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.openrewrite.test.RecipeSpec;
import org.openrewrite.test.RewriteTest;

import static org.assertj.core.api.Assertions.assertThat;
import static org.openrewrite.java.Assertions.mavenProject;
import static org.openrewrite.maven.Assertions.pomXml;

Expand All @@ -37,8 +38,8 @@ public void defaults(RecipeSpec spec) {
void convert() {
rewriteRun(
mavenProject("project",
//language=xml
pomXml(
//language=xml
"""
<project>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -55,22 +56,7 @@ void convert() {
</dependencies>
</project>
""",
"""
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.openrewrite</groupId>
<artifactId>arquillian</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian.junit5</groupId>
<artifactId>arquillian-junit5-container</artifactId>
<version>1.9.2.Final</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
"""
spec -> spec.after(pom -> assertThat(pom).contains("<version>1.9.").actual())
)
)
);
Expand Down

0 comments on commit 18acebb

Please sign in to comment.