From 22f8835e9673863667e2d8d4455dfb460f77d5cf Mon Sep 17 00:00:00 2001 From: Simon Verhoeven Date: Thu, 30 Nov 2023 20:22:07 +0100 Subject: [PATCH] Update src/test/java/org/openrewrite/okhttp/MigrateToOkHttp4Test.java Co-authored-by: Tim te Beek --- .../java/org/openrewrite/okhttp/MigrateToOkHttp4Test.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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