diff --git a/src/test/java/org/vafer/jdependency/ClazzpathUnitTestCase.java b/src/test/java/org/vafer/jdependency/ClazzpathUnitTestCase.java index a9afda9b..16c7371f 100644 --- a/src/test/java/org/vafer/jdependency/ClazzpathUnitTestCase.java +++ b/src/test/java/org/vafer/jdependency/ClazzpathUnitTestCase.java @@ -206,20 +206,20 @@ private void verifyFileNameParsingInvalid(String fileName) { @Test public void testFileNameCheck(){ - assertFalse(Clazz.isMultiReleaseClassFile("nl/basjes/maven/multijdk/App.class")); - assertTrue(Clazz.isMultiReleaseClassFile("META-INF/versions/11/nl/basjes/maven/multijdk/App.class")); - assertTrue(Clazz.isMultiReleaseClassFile("META-INF/versions/1234/nl/basjes/maven/multijdk/App.class")); + assertFalse(Clazz.isMultiReleaseClassFile("org/vafer/multijdk/App.class")); + assertTrue(Clazz.isMultiReleaseClassFile("META-INF/versions/11/org/vafer/multijdk/App.class")); + assertTrue(Clazz.isMultiReleaseClassFile("META-INF/versions/1234/org/vafer/multijdk/App.class")); } @Test public void testFileNameParsing(){ - verifyFileNameParsing("nl/basjes/maven/multijdk/App.class", "8", "nl.basjes.maven.multijdk.App"); - verifyFileNameParsing("META-INF/versions/11/nl/basjes/maven/multijdk/App.class", "11", "nl.basjes.maven.multijdk.App"); - verifyFileNameParsing("META-INF/versions/1234/nl/basjes/maven/multijdk/App.class", "1234", "nl.basjes.maven.multijdk.App"); + verifyFileNameParsing("org/vafer/multijdk/App.class", "8", "org.vafer.multijdk.App"); + verifyFileNameParsing("META-INF/versions/11/org/vafer/multijdk/App.class", "11", "org.vafer.multijdk.App"); + verifyFileNameParsing("META-INF/versions/1234/org/vafer/multijdk/App.class", "1234", "org.vafer.multijdk.App"); - verifyFileNameParsingInvalid("nl/basjes/maven/multijdk/App.classsssss"); - verifyFileNameParsingInvalid("nl/basjes/maven/multijdk/App.txt"); - verifyFileNameParsingInvalid("META-INF/versions/xxx/nl/basjes/maven/multijdk/App.class"); + verifyFileNameParsingInvalid("org/vafer/multijdk/App.classsssss"); + verifyFileNameParsingInvalid("org/vafer/multijdk/App.txt"); + verifyFileNameParsingInvalid("META-INF/versions/xxx/org/vafer/multijdk/App.class"); } private void verifyFileInClazz(Clazz clazz, String expectedFilename, String forJava, boolean mustBePresent) { @@ -254,14 +254,14 @@ public void testMultiReleaseJar() throws IOException { final ClazzpathUnit dependency = cp.addClazzpathUnit(resourceFile("multi-jdk-1.0.0.jar")); Map dependencyClazzes = dependency.getClazzesMap(); // Java 8, Java 11, Java 17 - verifyClazzFiles(dependencyClazzes.get("nl.basjes.maven.multijdk.Main"), true, false, false); - verifyClazzFiles(dependencyClazzes.get("nl.basjes.maven.multijdk.App"), true, true, true); - verifyClazzFiles(dependencyClazzes.get("nl.basjes.maven.multijdk.AbstractJavaVersion"), true, false, false); - verifyClazzFiles(dependencyClazzes.get("nl.basjes.maven.multijdk.JavaVersion"), true, true, false); - verifyClazzFiles(dependencyClazzes.get("nl.basjes.maven.multijdk.Unused"), true, true, true); - verifyClazzFiles(dependencyClazzes.get("nl.basjes.maven.multijdk.OnlyUsedInJava17"), false, true, false); - verifyClazzFiles(dependencyClazzes.get("nl.basjes.maven.multijdk.SpecificToJava11"), false, true, false); - verifyClazzFiles(dependencyClazzes.get("nl.basjes.maven.multijdk.SpecificToJava17"), false, false, true); + verifyClazzFiles(dependencyClazzes.get("org.vafer.multijdk.Main"), true, false, false); + verifyClazzFiles(dependencyClazzes.get("org.vafer.multijdk.App"), true, true, true); + verifyClazzFiles(dependencyClazzes.get("org.vafer.multijdk.AbstractJavaVersion"), true, false, false); + verifyClazzFiles(dependencyClazzes.get("org.vafer.multijdk.JavaVersion"), true, true, false); + verifyClazzFiles(dependencyClazzes.get("org.vafer.multijdk.Unused"), true, true, true); + verifyClazzFiles(dependencyClazzes.get("org.vafer.multijdk.OnlyUsedInJava17"), false, true, false); + verifyClazzFiles(dependencyClazzes.get("org.vafer.multijdk.SpecificToJava11"), false, true, false); + verifyClazzFiles(dependencyClazzes.get("org.vafer.multijdk.SpecificToJava17"), false, false, true); // Check which are obsolete final Set removable = cp.getClazzes(); @@ -273,8 +273,8 @@ public void testMultiReleaseJar() throws IOException { .collect(Collectors.toMap(Clazz::getName, Function.identity())); assertEquals(2, removableClazzes.size()); - assertTrue(removableClazzes.containsKey("nl.basjes.maven.multijdk.Main")); - assertTrue(removableClazzes.containsKey("nl.basjes.maven.multijdk.Unused")); + assertTrue(removableClazzes.containsKey("org.vafer.multijdk.Main")); + assertTrue(removableClazzes.containsKey("org.vafer.multijdk.Unused")); } } diff --git a/src/test/resources-src/multi-jdk/pom.xml b/src/test/resources-src/multi-jdk/pom.xml index 00ca4b2e..fd69448a 100644 --- a/src/test/resources-src/multi-jdk/pom.xml +++ b/src/test/resources-src/multi-jdk/pom.xml @@ -24,7 +24,7 @@ Multi Release Jar - nl.basjes.maven + org.vafer multi-jdk 1.0.0 @@ -85,7 +85,7 @@ - nl.basjes.maven.multijdk.Main + org.vafer.multijdk.Main true diff --git a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/AbstractJavaVersion.java b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/AbstractJavaVersion.java similarity index 96% rename from src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/AbstractJavaVersion.java rename to src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/AbstractJavaVersion.java index 1343829b..a23b255a 100644 --- a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/AbstractJavaVersion.java +++ b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/AbstractJavaVersion.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/App.java b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/App.java similarity index 95% rename from src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/App.java rename to src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/App.java index c53bfce4..250fcd6e 100644 --- a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/App.java +++ b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/App.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/JavaVersion.java b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/JavaVersion.java similarity index 96% rename from src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/JavaVersion.java rename to src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/JavaVersion.java index 3b2a6661..a2cbfef5 100644 --- a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/JavaVersion.java +++ b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/JavaVersion.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/Main.java b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/Main.java similarity index 96% rename from src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/Main.java rename to src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/Main.java index 09804a43..3e469b64 100644 --- a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/Main.java +++ b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/Main.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/Unused.java b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/Unused.java similarity index 95% rename from src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/Unused.java rename to src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/Unused.java index 5871d80c..0961fdfd 100644 --- a/src/test/resources-src/multi-jdk/src/main/java/nl/basjes/maven/multijdk/Unused.java +++ b/src/test/resources-src/multi-jdk/src/main/java/org/vafer/multijdk/Unused.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/App.java b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/App.java similarity index 95% rename from src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/App.java rename to src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/App.java index 3d32c542..bbb93303 100644 --- a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/App.java +++ b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/App.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/JavaVersion.java b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/JavaVersion.java similarity index 96% rename from src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/JavaVersion.java rename to src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/JavaVersion.java index 02718f8d..3cb84629 100644 --- a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/JavaVersion.java +++ b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/JavaVersion.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/OnlyUsedInJava17.java b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/OnlyUsedInJava17.java similarity index 95% rename from src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/OnlyUsedInJava17.java rename to src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/OnlyUsedInJava17.java index e8b167ad..26c2fcb6 100644 --- a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/OnlyUsedInJava17.java +++ b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/OnlyUsedInJava17.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/SpecificToJava11.java b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/SpecificToJava11.java similarity index 95% rename from src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/SpecificToJava11.java rename to src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/SpecificToJava11.java index bd7447e9..cfaaff71 100644 --- a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/SpecificToJava11.java +++ b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/SpecificToJava11.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/Unused.java b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/Unused.java similarity index 95% rename from src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/Unused.java rename to src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/Unused.java index c5effe50..75339a81 100644 --- a/src/test/resources-src/multi-jdk/src/main/java11/nl/basjes/maven/multijdk/Unused.java +++ b/src/test/resources-src/multi-jdk/src/main/java11/org/vafer/multijdk/Unused.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java17/nl/basjes/maven/multijdk/App.java b/src/test/resources-src/multi-jdk/src/main/java17/org/vafer/multijdk/App.java similarity index 95% rename from src/test/resources-src/multi-jdk/src/main/java17/nl/basjes/maven/multijdk/App.java rename to src/test/resources-src/multi-jdk/src/main/java17/org/vafer/multijdk/App.java index 52104847..8a918662 100644 --- a/src/test/resources-src/multi-jdk/src/main/java17/nl/basjes/maven/multijdk/App.java +++ b/src/test/resources-src/multi-jdk/src/main/java17/org/vafer/multijdk/App.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java17/nl/basjes/maven/multijdk/SpecificToJava17.java b/src/test/resources-src/multi-jdk/src/main/java17/org/vafer/multijdk/SpecificToJava17.java similarity index 95% rename from src/test/resources-src/multi-jdk/src/main/java17/nl/basjes/maven/multijdk/SpecificToJava17.java rename to src/test/resources-src/multi-jdk/src/main/java17/org/vafer/multijdk/SpecificToJava17.java index 5e7eb4ed..d927c18e 100644 --- a/src/test/resources-src/multi-jdk/src/main/java17/nl/basjes/maven/multijdk/SpecificToJava17.java +++ b/src/test/resources-src/multi-jdk/src/main/java17/org/vafer/multijdk/SpecificToJava17.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/multi-jdk/src/main/java17/nl/basjes/maven/multijdk/Unused.java b/src/test/resources-src/multi-jdk/src/main/java17/org/vafer/multijdk/Unused.java similarity index 95% rename from src/test/resources-src/multi-jdk/src/main/java17/nl/basjes/maven/multijdk/Unused.java rename to src/test/resources-src/multi-jdk/src/main/java17/org/vafer/multijdk/Unused.java index 76bfd89e..0c12f545 100644 --- a/src/test/resources-src/multi-jdk/src/main/java17/nl/basjes/maven/multijdk/Unused.java +++ b/src/test/resources-src/multi-jdk/src/main/java17/org/vafer/multijdk/Unused.java @@ -1,4 +1,4 @@ -package nl.basjes.maven.multijdk; +package org.vafer.multijdk; /* * Copyright 2010-2023 The jdependency developers. * diff --git a/src/test/resources-src/uses-multi-jdk/pom.xml b/src/test/resources-src/uses-multi-jdk/pom.xml index f381c81e..49363727 100644 --- a/src/test/resources-src/uses-multi-jdk/pom.xml +++ b/src/test/resources-src/uses-multi-jdk/pom.xml @@ -35,7 +35,7 @@ - nl.basjes.maven + org.vafer multi-jdk 1.0.0 diff --git a/src/test/resources-src/uses-multi-jdk/src/main/java/nl/example/Main.java b/src/test/resources-src/uses-multi-jdk/src/main/java/nl/example/Main.java index 379668c6..0238131e 100644 --- a/src/test/resources-src/uses-multi-jdk/src/main/java/nl/example/Main.java +++ b/src/test/resources-src/uses-multi-jdk/src/main/java/nl/example/Main.java @@ -14,8 +14,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import nl.basjes.maven.multijdk.JavaVersion; -import nl.basjes.maven.multijdk.App; +import org.vafer.multijdk.JavaVersion; +import org.vafer.multijdk.App; public class Main { public static void main(String[] args) { diff --git a/src/test/resources/multi-jdk-1.0.0.jar b/src/test/resources/multi-jdk-1.0.0.jar index 42884c79..edde3a96 100644 Binary files a/src/test/resources/multi-jdk-1.0.0.jar and b/src/test/resources/multi-jdk-1.0.0.jar differ diff --git a/src/test/resources/uses-multi-jdk-1.0.jar b/src/test/resources/uses-multi-jdk-1.0.jar index d2f62b21..9d705f58 100644 Binary files a/src/test/resources/uses-multi-jdk-1.0.jar and b/src/test/resources/uses-multi-jdk-1.0.jar differ