Skip to content

Commit 02e9dc3

Browse files
authored
Use test TypeTable instead of packaged jars (#786)
* Use test TypeTable instead of packages jars * Use spring-web-6 specifically * Use a separate type table for Spring Boot 3_0 tests
1 parent 841b106 commit 02e9dc3

20 files changed

+17
-36
lines changed

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ recipeDependencies {
131131
parserClasspath("io.micrometer:micrometer-commons:1.11.+")
132132
parserClasspath("io.micrometer:micrometer-core:1.11.+")
133133
parserClasspath("io.micrometer:micrometer-observation:1.11.+")
134+
135+
testParserClasspath("io.projectreactor:reactor-core:3.6.3")
136+
testParserClasspath("org.apache.kafka:kafka-clients:3.2.3")
137+
testParserClasspath("org.springframework.cloud:spring-cloud-openfeign-core:4.1.0")
138+
testParserClasspath("org.springframework:spring-messaging:5.3.39")
139+
testParserClasspath("org.springframework:spring-web:6.1.8")
140+
testParserClasspath("org.springframework:spring-webflux:6.1.16")
141+
142+
// Only needed for `testWithSpringBoot_3_0`
143+
// testParserClasspath("org.springframework.batch:spring-batch-infrastructure:4.3.10")
134144
}
135145

136146
val rewriteVersion = rewriteRecipe.rewriteVersion.get()

src/test/java/org/openrewrite/java/spring/cloud2022/MigrateRequestMappingOnFeignClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void defaults(RecipeSpec spec) {
3131
spec
3232
.recipe(new MigrateRequestMappingOnFeignClient())
3333
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(),
34-
"spring-web",
34+
"spring-web-6",
3535
"spring-cloud-openfeign-core"));
3636
}
3737

636 KB
Binary file not shown.
-4.74 MB
Binary file not shown.
-1.78 MB
Binary file not shown.
-211 KB
Binary file not shown.
-768 KB
Binary file not shown.
-66 KB
Binary file not shown.
-555 KB
Binary file not shown.
-1.81 MB
Binary file not shown.

0 commit comments

Comments
 (0)