Skip to content

Commit 558a85b

Browse files
committed
Expect new spring property keys to be sorted
1 parent f788b60 commit 558a85b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/java/org/openrewrite/java/spring/AddSpringPropertyTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ void addPropertyToRoot() {
6868
servlet.session.cookie.path=/cookie-monster
6969
""",
7070
"""
71-
servlet.session.cookie.path=/cookie-monster
7271
fred=fred
72+
servlet.session.cookie.path=/cookie-monster
7373
"""
7474
),
7575
//language=yaml
7676
yaml(
7777
"""
78-
server:
79-
port: 8888
78+
server:
79+
port: 8888
8080
""",
8181
"""
8282
server:

src/testWithSpringBoot_2_4/java/org/openrewrite/java/spring/boot2/MigrateDatabaseCredentialsTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ void propertiesMigration() {
6060
spring.liquibase.url=host
6161
""",
6262
"""
63+
spring.liquibase.password=${spring.datasource.password}
6364
spring.liquibase.url=host
6465
spring.liquibase.username=${spring.datasource.username}
65-
spring.liquibase.password=${spring.datasource.password}
6666
"""
6767
)
6868
);

0 commit comments

Comments
 (0)