Skip to content

Commit 83f0156

Browse files
Refresh UpdateSdkManTest fixtures after SDKMAN CSV update (#1073)
The 2026-04-27 auto-update of sdkman-java.csv removed several patch versions that the test fixtures hard-coded: - 17.0.18-tem → only 17.0.19-tem now ships - 11.0.30-amzn → only 11.0.31-amzn now ships - 23.0.1-open and 23.0.2-amzn → no Java 23 entries remain Update the three failing tests to use versions present in the current CSV, choosing pairs that still demonstrate the same recipe behavior.
1 parent 9664adb commit 83f0156

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/test/java/org/openrewrite/java/migrate/UpdateSdkManTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ class UpdateSdkManTest implements RewriteTest {
3030
@Test
3131
void updateVersionExact() {
3232
rewriteRun(
33-
spec -> spec.recipe(new UpdateSdkMan("17.0.18", null)),
33+
spec -> spec.recipe(new UpdateSdkMan("17.0.19", null)),
3434
text(
3535
"""
3636
java=11.1.2-tem
3737
""",
3838
"""
39-
java=17.0.18-tem
39+
java=17.0.19-tem
4040
""",
4141
spec -> spec.path(".sdkmanrc")
4242
)
@@ -63,10 +63,10 @@ void updateDistributionOnly() {
6363
spec -> spec.recipe(new UpdateSdkMan(null, "amzn")),
6464
text(
6565
"""
66-
java=11.0.30-tem
66+
java=11.0.31-zulu
6767
""",
6868
"""
69-
java=11.0.30-amzn
69+
java=11.0.31-amzn
7070
""",
7171
spec -> spec.path(".sdkmanrc")
7272
)
@@ -186,13 +186,13 @@ void upgradeIfNewVersionIsStillSameVersionBasisAndSameDistribution() {
186186
@Test
187187
void upgradeIfNewVersionIsStillSameVersionBasisAndDifferentDistribution() {
188188
rewriteRun(
189-
spec -> spec.recipe(new UpdateSdkMan("23", "amzn")),
189+
spec -> spec.recipe(new UpdateSdkMan("21", "tem")),
190190
text(
191191
"""
192-
java=23.0.1-open
192+
java=21.0.10-jbr
193193
""",
194194
"""
195-
java=23.0.2-amzn
195+
java=21.0.11-tem
196196
""",
197197
spec -> spec.path(".sdkmanrc")
198198
)

0 commit comments

Comments
 (0)