diff --git a/src/test/java/org/openrewrite/xml/liberty/AppDDNamespaceTest.java b/src/test/java/org/openrewrite/xml/liberty/AppDDNamespaceTest.java index 1aac361..40f1e32 100644 --- a/src/test/java/org/openrewrite/xml/liberty/AppDDNamespaceTest.java +++ b/src/test/java/org/openrewrite/xml/liberty/AppDDNamespaceTest.java @@ -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 diff --git a/src/test/java/org/openrewrite/xml/liberty/ConnectorDDNamespaceTest.java b/src/test/java/org/openrewrite/xml/liberty/ConnectorDDNamespaceTest.java index 58e508a..0803029 100644 --- a/src/test/java/org/openrewrite/xml/liberty/ConnectorDDNamespaceTest.java +++ b/src/test/java/org/openrewrite/xml/liberty/ConnectorDDNamespaceTest.java @@ -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 diff --git a/src/test/java/org/openrewrite/xml/liberty/EJBDDNamespaceTest.java b/src/test/java/org/openrewrite/xml/liberty/EJBDDNamespaceTest.java index d3e6cc5..79eda3b 100644 --- a/src/test/java/org/openrewrite/xml/liberty/EJBDDNamespaceTest.java +++ b/src/test/java/org/openrewrite/xml/liberty/EJBDDNamespaceTest.java @@ -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 diff --git a/src/test/java/org/openrewrite/xml/liberty/PersistenceXmlLocationRuleTest.java b/src/test/java/org/openrewrite/xml/liberty/PersistenceXmlLocationRuleTest.java index 1d640c3..fb290e6 100644 --- a/src/test/java/org/openrewrite/xml/liberty/PersistenceXmlLocationRuleTest.java +++ b/src/test/java/org/openrewrite/xml/liberty/PersistenceXmlLocationRuleTest.java @@ -37,6 +37,7 @@ public void defaults(RecipeSpec spec) { @Test void movePersistenceXMLFileTest() { rewriteRun( + spec -> spec.expectedCyclesThatMakeChanges(1), text( //language=xml """ diff --git a/src/test/java/org/openrewrite/xml/liberty/WebDDNamespaceTest.java b/src/test/java/org/openrewrite/xml/liberty/WebDDNamespaceTest.java index 1ba4bef..dfa7a4d 100644 --- a/src/test/java/org/openrewrite/xml/liberty/WebDDNamespaceTest.java +++ b/src/test/java/org/openrewrite/xml/liberty/WebDDNamespaceTest.java @@ -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