Skip to content

Commit 86c73d8

Browse files
committed
use defaultMap for shouldStartWith
1 parent 1a00a09 commit 86c73d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/SpringBootUpgradeReportTestSupport.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void shouldNotRender() {
9191
}
9292

9393
public void shouldStartWith(String expectedOutput) {
94-
shouldStartWith(expectedOutput, Map.of());
94+
shouldStartWith(expectedOutput, defaultMap());
9595
}
9696

9797
public void shouldStartWith(String expectedOutput, Map<String, String> templateVariables) {
@@ -159,7 +159,6 @@ public void writeReport(String s, Path outputDir, String filename) {
159159
action.apply(reportBuilderData.getContext());
160160
});
161161
} else if(SectionBuilderData.class.isInstance(builderData)) {
162-
SectionBuilderData sectionBuilderData = SectionBuilderData.class.cast(builderData);
163162
withRecipes(recipes -> {
164163
Recipe recipe = recipes.getRecipeByName("boot-2.7-3.0-upgrade-report2").get();
165164
SpringBootUpgradeReportAction action = (SpringBootUpgradeReportAction) recipe.getActions().get(0);

0 commit comments

Comments
 (0)