File tree 2 files changed +3
-5
lines changed
sbm-core/src/test/java/org/springframework/sbm/project/resource
sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -462,18 +462,17 @@ public ProjectContext build() {
462
462
String xml = "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n " +
463
463
"<project xmlns=\" http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\" >\n " +
464
464
" <modelVersion>4.0.0</modelVersion>\n " +
465
+ "{{springParentPom}}" +
465
466
" <groupId>com.example</groupId>\n " +
466
467
" <artifactId>dummy-root</artifactId>\n " +
467
468
" <version>0.1.0-SNAPSHOT</version>\n " +
468
469
" <packaging>jar</packaging>\n " +
469
- "{{springParentPom}}\n " +
470
- "{{dependencies}}\n " +
470
+ "{{dependencies}}" +
471
471
"</project>\n " ;
472
472
473
473
xml = xml
474
474
.replace ("{{dependencies}}" , getDependenciesSection ())
475
- .replace ("{{springParentPom}}" , getSpringParentPomSection ())
476
- ;
475
+ .replace ("{{springParentPom}}" , getSpringParentPomSection ());
477
476
478
477
resourcesWithRelativePaths .put (Path .of ("pom.xml" ), xml );
479
478
Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ private void verify(Consumer<String> assertion) {
195
195
* code of buttons to apply a recipe.
196
196
*/
197
197
private String replaceRecipeButtonCodeFromExpectedOutput (SpringBootUpgradeReportSection sectionUnderTest , String renderedSection ) {
198
- StringBuilder sb = new StringBuilder ();
199
198
List <String > buttonCodes = new ArrayList <>();
200
199
if (sectionUnderTest .getRemediation ().getPossibilities ().isEmpty ()) {
201
200
String recipe = sectionUnderTest .getRemediation ().getRecipe ();
You can’t perform that action at this time.
0 commit comments