Skip to content

Commit

Permalink
Add cycle hints to fix tests for now (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Jan 23, 2024
1 parent 0746ec8 commit 0953309
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void defaults(RecipeSpec spec) {
.scanRuntimeClasspath("org.openrewrite.java.liberty")
.build()
.activateRecipes("org.openrewrite.xml.liberty.AppDDNamespaceRule"));
spec.expectedCyclesThatMakeChanges(2);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void defaults(RecipeSpec spec) {
.scanRuntimeClasspath("org.openrewrite.java.liberty")
.build()
.activateRecipes("org.openrewrite.xml.liberty.ConnectorDDNamespaceRule"));
spec.expectedCyclesThatMakeChanges(2);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void defaults(RecipeSpec spec) {
.scanRuntimeClasspath("org.openrewrite.java.liberty")
.build()
.activateRecipes("org.openrewrite.xml.liberty.EJBDDNamespaceRule"));
spec.expectedCyclesThatMakeChanges(2);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void defaults(RecipeSpec spec) {
@Test
void movePersistenceXMLFileTest() {
rewriteRun(
spec -> spec.expectedCyclesThatMakeChanges(1),
text(
//language=xml
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void defaults(RecipeSpec spec) {
.scanRuntimeClasspath("org.openrewrite.java.liberty")
.build()
.activateRecipes("org.openrewrite.xml.liberty.WebDDNamespaceRule"));
spec.expectedCyclesThatMakeChanges(2);
}

@Test
Expand Down

0 comments on commit 0953309

Please sign in to comment.