eclipse-ee4j / jakartaee-tck-tools

Other
8 stars 16 forks source link

tck-rewrite-ant (TestPackageInfoBuilder) needs additional mappings for Mappings from EE11 to EE10 package prefixes #72

Closed scottmarlow closed 3 months ago

scottmarlow commented 3 months ago

I started working on a tck-rewrite-ant patch to deal with JPA package name changes.

diff --git a/tools/tck-rewrite-ant/src/main/java/tck/jakarta/platform/ant/api/TestPackageInfoBuilder.java b/tools/tck-rewrite-ant/src/main/java/tck/jakarta/platform/ant/api/TestPackageInfoBuilder.java
index 08b3d4a..b15d4d1 100644
--- a/tools/tck-rewrite-ant/src/main/java/tck/jakarta/platform/ant/api/TestPackageInfoBuilder.java
+++ b/tools/tck-rewrite-ant/src/main/java/tck/jakarta/platform/ant/api/TestPackageInfoBuilder.java
@@ -59,6 +59,9 @@ public class TestPackageInfoBuilder {
     };
     // Mappings from EE11 to EE10 package prefixes
     private static final String[] EE11_PKG_PREFIXES = {
+        "ee.jakarta.tck.persistence.entitytest.persist.oneXmanyFetchEager","com.sun.ts.tests.jpa.core.entitytest.persist.oneXmanyFetchEager",
+        "ee.jakarta.tck.persistence.core.persistenceUnitUtil","com.sun.ts.tests.jpa.core.persistenceUtilUtil", // map for package typo fixed in EE 11
+        "ee.jakarta.tck.persistence.core", "com.sun.ts.tests.jpa.core",
         "ee.jakarta.tck.persistence", "com.sun.ts.tests.jpa"
     };
     // Path to EE10 TCK dist