Skip to content

Commit cf75d78

Browse files
committed
added test cases with multiple files for configuration configurer vslidation
1 parent 46196ad commit cf75d78

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/reconcilers/test/WebFluxConfigurerConfigurationReconcilerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import static org.junit.jupiter.api.Assertions.assertEquals;
1414

15+
import java.nio.file.Path;
1516
import java.util.List;
1617

1718
import org.junit.jupiter.api.AfterEach;
@@ -160,7 +161,6 @@ public class MyWebFluxConfig implements WebFluxConfigurer {
160161
}
161162

162163
@Test
163-
@Disabled // TODO: need to take another look to make this test work
164164
void classImplementingWebFluxConfigurerIndirectly() throws Exception {
165165
String source1 = """
166166
package example;
@@ -178,8 +178,8 @@ public class MyWebFluxConfig implements CustomConfigurer {
178178
}
179179
""";
180180

181-
createFile("CustomConfigurer.java", source1);
182-
List<ReconcileProblem> problems = reconcile("MyWebFluxConfig.java", source2, false);
181+
Path extraSource = createFile("CustomConfigurer.java", source1);
182+
List<ReconcileProblem> problems = reconcile("MyWebFluxConfig.java", source2, false, extraSource);
183183
assertEquals(1, problems.size());
184184

185185
ReconcileProblem problem = problems.get(0);

headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/reconcilers/test/WebMvcConfigurerConfigurationReconcilerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import static org.junit.jupiter.api.Assertions.assertEquals;
1414

15+
import java.nio.file.Path;
1516
import java.util.List;
1617

1718
import org.junit.jupiter.api.AfterEach;
@@ -160,7 +161,6 @@ public class MyWebConfig implements WebMvcConfigurer {
160161
}
161162

162163
@Test
163-
@Disabled // TODO: need to take another look to make this test work
164164
void classImplementingWebMvcConfigurerIndirectly() throws Exception {
165165
String source1 = """
166166
package example;
@@ -178,8 +178,8 @@ public class MyWebConfig implements CustomConfigurer {
178178
}
179179
""";
180180

181-
createFile("CustomConfigurer.java", source1);
182-
List<ReconcileProblem> problems = reconcile("MyWebConfig.java", source2, false);
181+
Path extraSource = createFile("CustomConfigurer.java", source1);
182+
List<ReconcileProblem> problems = reconcile("MyWebConfig.java", source2, false, extraSource);
183183
assertEquals(1, problems.size());
184184

185185
ReconcileProblem problem = problems.get(0);

0 commit comments

Comments
 (0)