Skip to content

Commit 176eed3

Browse files
authored
Update findRelocatedIonJava test for new relocation context (#186)
The [Auto] Old GroupId migrations update (5253cf5) added a context note to the software.amazon.ion:ion-java relocation in migrations.csv. The RelocatedDependencyCheck recipe now surfaces that context both in the RelocatedDependencyReport data table row and in the inline search-result marker comment, so update the test expectations to match. Fixes the scheduled CI failure in run 28122079598.
1 parent 5253cf5 commit 176eed3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/java/org/openrewrite/java/dependencies/RelocatedDependencyCheckTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ void changeRelocatedMavenDependencies() {
154154
void findRelocatedIonJava() {
155155
rewriteRun(
156156
recipe -> recipe.dataTable(RelocatedDependencyReport.Row.class, rows -> assertThat(rows).containsExactly(
157-
new RelocatedDependencyReport.Row("software.amazon.ion", "ion-java", "com.amazon.ion", "ion-java", null)
157+
new RelocatedDependencyReport.Row("software.amazon.ion", "ion-java", "com.amazon.ion", "ion-java",
158+
"From version 1.4.0 onward, Amazon Ion for Java moved to the new group id and Java package name \"com.amazon.ion\". The legacy \"software.amazon.ion\" group id is deprecated. See https://amazon-ion.github.io/ion-docs/news/2020/01/15/software.amazon.ion-deprecated.html")
158159
)),
159160
//language=xml
160161
pomXml(
@@ -180,7 +181,7 @@ void findRelocatedIonJava() {
180181
<artifactId>rewrite-example</artifactId>
181182
<version>1.0-SNAPSHOT</version>
182183
<dependencies>
183-
<!--~~(Relocated to com.amazon.ion:ion-java)~~>--><dependency>
184+
<!--~~(Relocated to com.amazon.ion:ion-java as per "From version 1.4.0 onward, Amazon Ion for Java moved to the new group id and Java package name "com.amazon.ion". The legacy "software.amazon.ion" group id is deprecated. See https://amazon-ion.github.io/ion-docs/news/2020/01/15/software.amazon.ion-deprecated.html")~~>--><dependency>
184185
<groupId>software.amazon.ion</groupId>
185186
<artifactId>ion-java</artifactId>
186187
<version>1.5.1</version>

0 commit comments

Comments
 (0)