Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ImplicitWebAnnotationNamesTest implements RewriteTest {
public void defaults(RecipeSpec spec) {
spec.recipe(new ImplicitWebAnnotationNames())
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-web-5.+"))
.parser(KotlinParser.builder().classpathFromResources(new InMemoryExecutionContext(), "spring-web-5.+"));
.parser(KotlinParser.builder().classpathFromResources(new InMemoryExecutionContext(), "spring-web-5"));
}

@DocumentExample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class NoAutowiredOnConstructorTest implements RewriteTest {
public void defaults(RecipeSpec spec) {
spec.recipe(new NoAutowiredOnConstructor())
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-beans-5.+", "spring-boot-1.5.+", "spring-context-5.+", "spring-core-5.+"))
.parser(KotlinParser.builder().classpathFromResources(new InMemoryExecutionContext(), "spring-beans-5.+", "spring-boot-1.5.+", "spring-context-5.+", "spring-core-5.+"));
.parser(KotlinParser.builder().classpathFromResources(new InMemoryExecutionContext(), "spring-beans-5", "spring-boot-1.5", "spring-context-5", "spring-core-5"));
}

@Issue("https://github.com/openrewrite/rewrite-spring/issues/78")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DatabaseComponentAndBeanInitializationOrderingTest implements RewriteTest
"jooq-3.14.15", "jakarta.persistence-api-2.2.3");
private final KotlinParser.Builder KOTLIN_PARSER = KotlinParser.builder()
.classpathFromResources(new InMemoryExecutionContext(),
"spring-beans-5.+", "spring-context-5.+", "spring-boot-2.4", "spring-jdbc-4.1.+", "spring-orm-5.3.+",
"spring-beans-5", "spring-context-5", "spring-boot-2.4", "spring-jdbc-4.1", "spring-orm-5.3",
"jooq-3.14.15", "jakarta.persistence-api-2.2.3");

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void defaults(RecipeSpec spec) {
.parser(JavaParser.fromJavaVersion()
.classpathFromResources(new InMemoryExecutionContext(), "spring-web-6.+", "spring-test-6.+"))
.parser(KotlinParser.builder()
.classpathFromResources(new InMemoryExecutionContext(), "spring-web-6.+", "spring-test-6.+"));
.classpathFromResources(new InMemoryExecutionContext(), "spring-web-6", "spring-test-6"));
}

@DocumentExample
Expand Down
Loading