Skip to content

Commit 1a00a09

Browse files
committed
Fix path for java source and enables test
1 parent 7b38bce commit 1a00a09

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.springframework.sbm.boot.upgrade_27_30.report.helper;
1818

1919
import org.intellij.lang.annotations.Language;
20-
import org.junit.jupiter.api.Disabled;
2120
import org.junit.jupiter.api.Test;
2221
import org.springframework.sbm.boot.upgrade_27_30.report.SpringBootUpgradeReportTestSupport;
2322
import org.springframework.sbm.engine.context.ProjectContext;
@@ -63,7 +62,7 @@ public String getFrom() {
6362
""";
6463

6564
ProjectContext context = TestProjectContext.buildProjectContext()
66-
.addJavaSource("src/main/java/com/example/ConfigProperties.java", javaClassWithConstructorBinding)
65+
.addJavaSource("src/main/java", javaClassWithConstructorBinding)
6766
.withBuildFileHavingDependencies("org.springframework.boot:spring-boot:2.7.1")
6867
.build();
6968

@@ -89,7 +88,7 @@ is no longer required if the class has a single parameterized constructor.
8988
==== Why is the application affected
9089
We found usage of `@ConstructorBinding` in following files:
9190
92-
* <PATH>/src/main/com/example/ConfigProperties.java
91+
* <PATH>/src/main/java/com/example/ConfigProperties.java
9392
9493
==== Remediation
9594
Remove `@ConstructorBinding` if it matches the criteria, please refer issue: https://github.com/spring-projects-experimental/spring-boot-migrator/issues/166[#166]
@@ -99,7 +98,6 @@ is no longer required if the class has a single parameterized constructor.
9998
}
10099

101100
@Test
102-
@Disabled("show Do I do should not have section?")
103101
public void shouldNotReportConstructorBindingSuggestionWhenNothingIsFound() {
104102
@Language("java")
105103
String javaClassWithConstructorBinding = """

0 commit comments

Comments
 (0)