From 50ebd80b37126958a2c45d00bee81eb394aadaba Mon Sep 17 00:00:00 2001 From: aboyko Date: Fri, 6 Sep 2024 20:54:59 -0400 Subject: [PATCH] Upgrade Rewrite to 2.18 BOM --- headless-services/commons/pom.xml | 2 +- .../vscode/boot/java/rewrite/RewriteRecipeRepositoryTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/headless-services/commons/pom.xml b/headless-services/commons/pom.xml index f1761c8c7b..bc6d9641ef 100644 --- a/headless-services/commons/pom.xml +++ b/headless-services/commons/pom.xml @@ -118,7 +118,7 @@ 1.13 - 2.17.0 + 2.18.0 8.4 2.3.1 6.9.0.202403050737-r diff --git a/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/rewrite/RewriteRecipeRepositoryTest.java b/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/rewrite/RewriteRecipeRepositoryTest.java index 42ee03a2fb..6d24edd052 100644 --- a/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/rewrite/RewriteRecipeRepositoryTest.java +++ b/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/rewrite/RewriteRecipeRepositoryTest.java @@ -35,7 +35,7 @@ public class RewriteRecipeRepositoryTest { @Test void listSubRecipe() throws Exception { List recipes = recipeRepo.getSubRecipes("org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_1", List.of()).get(); - assertEquals(9, recipes.size()); + assertEquals(10, recipes.size()); recipes = recipeRepo.getSubRecipes("org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_1", List.of(0, 2)).get(); assertEquals(19, recipes.size()); @@ -114,7 +114,7 @@ void createRecipeFromSelectionDescriptor() throws Exception { assertEquals(2, boot31.getRecipeList().size()); Recipe security61 = boot31.getRecipeList().get(1); - assertThat(security61.getRecipeList().size()).isGreaterThan(5); + assertThat(security61.getRecipeList().size()).isGreaterThanOrEqualTo(5); Recipe boot30 = boot31.getRecipeList().get(0); assertEquals("org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0", boot30.getName());