Skip to content

Commit

Permalink
Fix test I missed
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Feb 4, 2025
1 parent 59a8dbe commit 9b949d8
Showing 1 changed file with 31 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import org.openrewrite.config.Environment;
import org.openrewrite.test.RewriteTest;

import static org.openrewrite.java.Assertions.mavenProject;
import static org.openrewrite.java.Assertions.srcMainResources;
import static org.openrewrite.properties.Assertions.properties;
import static org.openrewrite.yaml.Assertions.yaml;

Expand All @@ -34,31 +36,35 @@ void moveMaxHttpHeaderSize() {
.build()
.activateRecipes("org.openrewrite.java.spring.boot3.MigrateMaxHttpHeaderSize")
),
properties(
//language=properties
"""
# application.properties
server.max-http-header-size=10KB
""",
//language=properties
"""
# application.properties
server.max-http-request-header-size=10KB
""",
s -> s.path("src/main/resources/application.properties")
),
yaml(
//language=properties
"""
server:
max-http-header-size: 10KB
""",
//language=properties
"""
server:
max-http-request-header-size: 10KB
""",
s -> s.path("src/main/resources/application.yml")
mavenProject("test",
srcMainResources(
properties(
//language=properties
"""
# application.properties
server.max-http-header-size=10KB
""",
//language=properties
"""
# application.properties
server.max-http-request-header-size=10KB
""",
s -> s.path("src/main/resources/application.properties")
),
yaml(
//language=properties
"""
server:
max-http-header-size: 10KB
""",
//language=properties
"""
server:
max-http-request-header-size: 10KB
""",
s -> s.path("src/main/resources/application.yml")
)
)
)
);
}
Expand Down

0 comments on commit 9b949d8

Please sign in to comment.