diff --git a/src/test/java/org/openrewrite/okhttp/MigrateToOkHttp4Test.java b/src/test/java/org/openrewrite/okhttp/MigrateToOkHttp4Test.java index 371c9fd..5b465a4 100644 --- a/src/test/java/org/openrewrite/okhttp/MigrateToOkHttp4Test.java +++ b/src/test/java/org/openrewrite/okhttp/MigrateToOkHttp4Test.java @@ -31,10 +31,7 @@ class MigrateToOkHttp4Test implements RewriteTest { public void defaults(RecipeSpec spec) { - spec.recipe(Environment.builder() - .scanRuntimeClasspath("org.openrewrite.okhttp") - .build() - .activateRecipes("org.openrewrite.okhttp.UpgradeOkHttp4")); + spec.recipeFromResource("/META-INF/rewrite/okhttp-4.yml", "org.openrewrite.okhttp.UpgradeOkHttp4")); } @Nested