Skip to content
Merged
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 @@ -392,7 +392,7 @@ public String fooBazes() {
void changeTestAnnotationWithImplicityLiteralProperty() {
rewriteRun(
spec -> spec.recipe(new ChangeSpringPropertyKey("server.servlet-path", "server.servlet.path", List.of("foo")))
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-boot-test")),
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-boot-test-3.2")),
java(
"""
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -414,7 +414,7 @@ class SomeTest {}
void changeTestAnnotationWithLiteralProperty() {
rewriteRun(
spec -> spec.recipe(new ChangeSpringPropertyKey("server.servlet-path", "server.servlet.path", List.of("foo")))
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-boot-test")),
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-boot-test-3.2")),
java(
"""
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -436,7 +436,7 @@ class SomeTest {}
void changeTestAnnotationWithArrayProperties() {
rewriteRun(
spec -> spec.recipe(new ChangeSpringPropertyKey("server.servlet-path", "server.servlet.path", List.of("foo")))
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-boot-test")),
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-boot-test-3.2")),
java(
"""
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -458,7 +458,7 @@ class SomeTest {}
void changeTestAnnotationWithImplicitArrayProperties() {
rewriteRun(
spec -> spec.recipe(new ChangeSpringPropertyKey("server.servlet-path", "server.servlet.path", List.of("foo")))
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-boot-test")),
.parser(JavaParser.fromJavaVersion().classpathFromResources(new InMemoryExecutionContext(), "spring-boot-test-3.2")),
java(
"""
import org.springframework.boot.test.context.SpringBootTest;
Expand Down