From 12f3e7e878e3a22a696f7ba9b5c615d520807afb Mon Sep 17 00:00:00 2001 From: rfscholte Date: Fri, 28 May 2021 18:26:03 +0200 Subject: [PATCH] Remove maven-test-support in favor of plexus-testing --- maven-bom/pom.xml | 1 - maven-compat/pom.xml | 4 +- .../AbstractArtifactComponentTestCase.java | 5 +- .../deployer/ArtifactDeployerTest.java | 3 +- .../factory/DefaultArtifactFactoryTest.java | 2 +- .../installer/ArtifactInstallerTest.java | 3 +- .../transform/TransformationManagerTest.java | 2 +- .../manager/DefaultProfileManagerTest.java | 2 +- .../project/AbstractMavenProjectTestCase.java | 3 +- .../AbstractProjectInheritanceTestCase.java | 2 +- .../LegacyRepositorySystemTest.java | 6 +- .../maven/repository/MirrorProcessorTest.java | 4 +- .../legacy/DefaultWagonManagerTest.java | 7 +- .../legacy/LegacyRepositorySystemTest.java | 4 +- .../DefaultArtifactCollectorTest.java | 3 +- .../AbstractConflictResolverTest.java | 3 +- .../DefaultClasspathTransformationTest.java | 2 +- .../DefaultGraphConflictResolverTest.java | 2 +- maven-core/pom.xml | 9 +- .../AbstractCoreMavenComponentTestCase.java | 6 +- .../ProjectDependenciesResolverTest.java | 2 +- .../artifact/handler/ArtifactHandlerTest.java | 5 +- ...ultMavenExecutionRequestPopulatorTest.java | 27 +- .../lifecycle/DefaultLifecyclesTest.java | 3 +- ...luginParameterExpressionEvaluatorTest.java | 4 +- .../project/AbstractMavenProjectTestCase.java | 3 +- .../DefaultMavenProjectBuilderTest.java | 2 +- .../maven/project/PomConstructionTest.java | 5 +- .../project/ProjectModelResolverTest.java | 2 +- .../artifact/MavenMetadataSourceTest.java | 2 +- .../DefaultRuntimeInformationTest.java | 5 +- .../PomConstructionWithSettingsTest.java | 4 +- maven-model-transform/pom.xml | 4 +- maven-resolver-provider/pom.xml | 4 +- .../internal/AbstractRepositoryTestCase.java | 5 +- maven-test-support/pom.xml | 78 ---- .../apache/maven/test/PlexusExtension.java | 341 ------------------ .../org/apache/maven/test/PlexusTest.java | 38 -- maven-test-support/src/site/site.xml | 38 -- pom.xml | 18 +- 40 files changed, 76 insertions(+), 587 deletions(-) delete mode 100644 maven-test-support/pom.xml delete mode 100644 maven-test-support/src/main/java/org/apache/maven/test/PlexusExtension.java delete mode 100644 maven-test-support/src/main/java/org/apache/maven/test/PlexusTest.java delete mode 100644 maven-test-support/src/site/site.xml diff --git a/maven-bom/pom.xml b/maven-bom/pom.xml index f7a8218838..097fadfbb4 100644 --- a/maven-bom/pom.xml +++ b/maven-bom/pom.xml @@ -66,7 +66,6 @@ under the License. - apache-maven, as it delivers the binaries - maven-compat, only used by apache-maven distributions to support older releases - maven-slf4j-provider, only used by apache-maven distributions - - maven-test-support, only for internal test usage - maven-wrapper, only used by apache-maven-wrapper distributions --> diff --git a/maven-compat/pom.xml b/maven-compat/pom.xml index be1cd35786..b0e8b254c4 100644 --- a/maven-compat/pom.xml +++ b/maven-compat/pom.xml @@ -100,8 +100,8 @@ under the License. - org.apache.maven - maven-test-support + org.codehaus.plexus + plexus-testing test diff --git a/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java b/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java index 0c6c062a25..735c6499f2 100644 --- a/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java +++ b/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java @@ -32,7 +32,7 @@ import java.util.List; import javax.inject.Inject; import javax.inject.Named; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.apache.maven.artifact.factory.ArtifactFactory; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; @@ -65,10 +65,9 @@ import org.eclipse.aether.util.graph.transformer.NearestVersionSelector; import org.eclipse.aether.util.graph.transformer.SimpleOptionalitySelector; import org.eclipse.aether.util.graph.traverser.FatArtifactTraverser; import org.eclipse.aether.util.repository.SimpleArtifactDescriptorPolicy; -import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; -import static org.apache.maven.test.PlexusExtension.getBasedir; +import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java b/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java index e321e4579b..53cc388acd 100644 --- a/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java +++ b/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java @@ -25,10 +25,9 @@ import org.apache.maven.artifact.AbstractArtifactComponentTestCase; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.ArtifactRepository; import org.codehaus.plexus.util.FileUtils; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import static org.apache.maven.test.PlexusExtension.getBasedir; +import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/maven-compat/src/test/java/org/apache/maven/artifact/factory/DefaultArtifactFactoryTest.java b/maven-compat/src/test/java/org/apache/maven/artifact/factory/DefaultArtifactFactoryTest.java index 517bc71aa4..d124894d6d 100644 --- a/maven-compat/src/test/java/org/apache/maven/artifact/factory/DefaultArtifactFactoryTest.java +++ b/maven-compat/src/test/java/org/apache/maven/artifact/factory/DefaultArtifactFactoryTest.java @@ -21,7 +21,7 @@ package org.apache.maven.artifact.factory; import javax.inject.Inject; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.versioning.VersionRange; import org.junit.jupiter.api.Test; diff --git a/maven-compat/src/test/java/org/apache/maven/artifact/installer/ArtifactInstallerTest.java b/maven-compat/src/test/java/org/apache/maven/artifact/installer/ArtifactInstallerTest.java index 0010d4f41a..ca99ab2a53 100644 --- a/maven-compat/src/test/java/org/apache/maven/artifact/installer/ArtifactInstallerTest.java +++ b/maven-compat/src/test/java/org/apache/maven/artifact/installer/ArtifactInstallerTest.java @@ -23,12 +23,11 @@ import java.io.File; import org.apache.maven.artifact.AbstractArtifactComponentTestCase; import org.apache.maven.artifact.Artifact; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import javax.inject.Inject; -import static org.apache.maven.test.PlexusExtension.getBasedir; +import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; /** * @author Jason van Zyl diff --git a/maven-compat/src/test/java/org/apache/maven/artifact/transform/TransformationManagerTest.java b/maven-compat/src/test/java/org/apache/maven/artifact/transform/TransformationManagerTest.java index 08e1055484..68a7522d5f 100644 --- a/maven-compat/src/test/java/org/apache/maven/artifact/transform/TransformationManagerTest.java +++ b/maven-compat/src/test/java/org/apache/maven/artifact/transform/TransformationManagerTest.java @@ -22,7 +22,7 @@ import org.apache.maven.repository.legacy.resolver.transform.ArtifactTransformat import org.apache.maven.repository.legacy.resolver.transform.LatestArtifactTransformation; import org.apache.maven.repository.legacy.resolver.transform.ReleaseArtifactTransformation; import org.apache.maven.repository.legacy.resolver.transform.SnapshotTransformation; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/maven-compat/src/test/java/org/apache/maven/profiles/manager/DefaultProfileManagerTest.java b/maven-compat/src/test/java/org/apache/maven/profiles/manager/DefaultProfileManagerTest.java index 5c9dc6b4ee..bcb50a1ad2 100644 --- a/maven-compat/src/test/java/org/apache/maven/profiles/manager/DefaultProfileManagerTest.java +++ b/maven-compat/src/test/java/org/apache/maven/profiles/manager/DefaultProfileManagerTest.java @@ -24,7 +24,7 @@ import java.util.Properties; import javax.inject.Inject; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.apache.maven.model.Activation; import org.apache.maven.model.ActivationProperty; import org.apache.maven.model.Profile; diff --git a/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java b/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java index 52f8dfe9a6..482a5b4730 100644 --- a/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java +++ b/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java @@ -24,7 +24,7 @@ import java.util.Arrays; import javax.inject.Inject; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; import org.apache.maven.model.building.ModelBuildingException; @@ -33,7 +33,6 @@ import org.apache.maven.repository.RepositorySystem; import org.apache.maven.repository.internal.MavenRepositorySystemUtils; import org.codehaus.plexus.PlexusContainer; import org.eclipse.aether.DefaultRepositorySystemSession; -import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import static org.junit.jupiter.api.Assertions.fail; diff --git a/maven-compat/src/test/java/org/apache/maven/project/inheritance/AbstractProjectInheritanceTestCase.java b/maven-compat/src/test/java/org/apache/maven/project/inheritance/AbstractProjectInheritanceTestCase.java index 2538abc0f4..af3655f826 100644 --- a/maven-compat/src/test/java/org/apache/maven/project/inheritance/AbstractProjectInheritanceTestCase.java +++ b/maven-compat/src/test/java/org/apache/maven/project/inheritance/AbstractProjectInheritanceTestCase.java @@ -23,7 +23,7 @@ import java.io.File; import org.apache.maven.project.AbstractMavenProjectTestCase; -import static org.apache.maven.test.PlexusExtension.getTestFile; +import static org.codehaus.plexus.testing.PlexusExtension.getTestFile; /** * @author Jason van Zyl diff --git a/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java b/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java index 85057832c9..f68a9961fb 100644 --- a/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java +++ b/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java @@ -32,16 +32,14 @@ import org.apache.maven.model.Repository; import org.apache.maven.model.RepositoryPolicy; import org.apache.maven.plugin.LegacySupport; import org.apache.maven.repository.legacy.LegacyRepositorySystem; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.codehaus.plexus.PlexusContainer; import org.eclipse.aether.DefaultRepositorySystemSession; import org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory; import org.eclipse.aether.repository.LocalRepository; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import static org.apache.maven.test.PlexusExtension.getBasedir; +import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/maven-compat/src/test/java/org/apache/maven/repository/MirrorProcessorTest.java b/maven-compat/src/test/java/org/apache/maven/repository/MirrorProcessorTest.java index 49277ba024..9e8ab4e271 100644 --- a/maven-compat/src/test/java/org/apache/maven/repository/MirrorProcessorTest.java +++ b/maven-compat/src/test/java/org/apache/maven/repository/MirrorProcessorTest.java @@ -22,13 +22,11 @@ package org.apache.maven.repository; import java.util.Arrays; import java.util.List; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; import org.apache.maven.repository.legacy.repository.ArtifactRepositoryFactory; import org.apache.maven.settings.Mirror; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertFalse; diff --git a/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java b/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java index eefe1b5afb..14961c10d2 100644 --- a/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java +++ b/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java @@ -34,7 +34,7 @@ import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; import org.apache.maven.artifact.versioning.VersionRange; import org.apache.maven.repository.legacy.repository.ArtifactRepositoryFactory; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.apache.maven.wagon.ResourceDoesNotExistException; import org.apache.maven.wagon.TransferFailedException; import org.apache.maven.wagon.UnsupportedProtocolException; @@ -43,14 +43,11 @@ import org.apache.maven.wagon.events.TransferEvent; import org.apache.maven.wagon.events.TransferListener; import org.apache.maven.wagon.observers.AbstractTransferListener; import org.apache.maven.wagon.observers.Debug; -import org.codehaus.plexus.PlexusContainer; import org.codehaus.plexus.util.FileUtils; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import static org.apache.maven.test.PlexusExtension.getTestFile; +import static org.codehaus.plexus.testing.PlexusExtension.getTestFile; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; diff --git a/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java b/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java index e2c90b10bf..ab93995043 100644 --- a/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java +++ b/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java @@ -22,9 +22,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.repository.Authentication; import org.apache.maven.repository.RepositorySystem; import org.apache.maven.settings.Server; -import org.apache.maven.test.PlexusTest; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.BeforeEach; +import org.codehaus.plexus.testing.PlexusTest; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java b/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java index a0aa3366d4..f50d91401f 100644 --- a/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java +++ b/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java @@ -49,8 +49,7 @@ import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException import org.apache.maven.artifact.versioning.OverConstrainedVersionException; import org.apache.maven.artifact.versioning.VersionRange; import org.apache.maven.repository.legacy.metadata.MetadataResolutionRequest; -import org.apache.maven.test.PlexusTest; -import org.junit.jupiter.api.AfterEach; +import org.codehaus.plexus.testing.PlexusTest; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/AbstractConflictResolverTest.java b/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/AbstractConflictResolverTest.java index 343e943ce6..178933996e 100644 --- a/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/AbstractConflictResolverTest.java +++ b/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/AbstractConflictResolverTest.java @@ -27,9 +27,8 @@ import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.resolver.ResolutionNode; import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.artifact.versioning.VersionRange; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.codehaus.plexus.PlexusContainer; -import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import javax.inject.Inject; diff --git a/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTest.java b/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTest.java index d5e2389f58..348dd978fd 100644 --- a/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTest.java +++ b/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTest.java @@ -18,7 +18,7 @@ package org.apache.maven.repository.metadata; import javax.inject.Inject; import org.apache.maven.artifact.ArtifactScopeEnum; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; diff --git a/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java b/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java index 9d3e67d1ec..67a003ab17 100644 --- a/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java +++ b/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java @@ -18,7 +18,7 @@ package org.apache.maven.repository.metadata; import javax.inject.Inject; import org.apache.maven.artifact.ArtifactScopeEnum; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/maven-core/pom.xml b/maven-core/pom.xml index caeb615c6e..89450f90ab 100644 --- a/maven-core/pom.xml +++ b/maven-core/pom.xml @@ -165,8 +165,13 @@ under the License. test - org.apache.maven - maven-test-support + org.junit.jupiter + junit-jupiter-params + test + + + org.codehaus.plexus + plexus-testing test diff --git a/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java b/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java index 14a57680ad..2d9400ef47 100644 --- a/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java +++ b/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java @@ -44,9 +44,7 @@ import org.apache.maven.project.MavenProject; import org.apache.maven.project.ProjectBuildingRequest; import org.apache.maven.repository.RepositorySystem; import org.apache.maven.repository.internal.MavenRepositorySystemUtils; -import org.apache.maven.test.PlexusTest; -import org.codehaus.plexus.ContainerConfiguration; -import org.codehaus.plexus.PlexusConstants; +import org.codehaus.plexus.testing.PlexusTest; import org.codehaus.plexus.PlexusContainer; import org.codehaus.plexus.util.FileUtils; import org.eclipse.aether.DefaultRepositorySystemSession; @@ -55,7 +53,7 @@ import org.eclipse.aether.repository.LocalRepository; import javax.inject.Inject; -import static org.apache.maven.test.PlexusExtension.getBasedir; +import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; @PlexusTest public abstract class AbstractCoreMavenComponentTestCase diff --git a/maven-core/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java b/maven-core/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java index 2aab3db22f..b648f2aec4 100644 --- a/maven-core/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java +++ b/maven-core/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java @@ -28,7 +28,7 @@ import org.apache.maven.project.MavenProject; import javax.inject.Inject; import org.junit.jupiter.api.Test; -import static org.apache.maven.test.PlexusExtension.getBasedir; +import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; import static org.hamcrest.Matchers.endsWith; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java b/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java index 72719c9974..9dd5cf19d1 100644 --- a/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java +++ b/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java @@ -24,13 +24,12 @@ import java.util.List; import javax.inject.Inject; -import org.apache.maven.test.PlexusExtension; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.codehaus.plexus.PlexusContainer; import org.codehaus.plexus.util.FileUtils; import org.junit.jupiter.api.Test; -import static org.apache.maven.test.PlexusExtension.getTestFile; +import static org.codehaus.plexus.testing.PlexusExtension.getTestFile; import static org.junit.jupiter.api.Assertions.assertEquals; @PlexusTest diff --git a/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulatorTest.java b/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulatorTest.java index 46191c50e3..02be60e0fd 100644 --- a/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulatorTest.java +++ b/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulatorTest.java @@ -1,18 +1,5 @@ package org.apache.maven.execution; -import java.util.List; - -import javax.inject.Inject; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.settings.Profile; -import org.apache.maven.settings.Repository; -import org.apache.maven.settings.Settings; -import org.apache.maven.test.PlexusTest; -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -31,6 +18,20 @@ import static org.junit.jupiter.api.Assertions.assertEquals; * specific language governing permissions and limitations * under the License. */ + +import java.util.List; + +import javax.inject.Inject; + +import org.apache.maven.artifact.repository.ArtifactRepository; +import org.apache.maven.settings.Profile; +import org.apache.maven.settings.Repository; +import org.apache.maven.settings.Settings; +import org.codehaus.plexus.testing.PlexusTest; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + @PlexusTest public class DefaultMavenExecutionRequestPopulatorTest { diff --git a/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java b/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java index aea902d101..81dfb71404 100644 --- a/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java +++ b/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java @@ -23,8 +23,7 @@ import java.util.stream.Collectors; import javax.inject.Inject; -import org.apache.maven.test.PlexusTest; -import org.junit.jupiter.api.BeforeEach; +import org.codehaus.plexus.testing.PlexusTest; import org.junit.jupiter.api.Test; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java b/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java index b0b9b1ff60..16deedd337 100644 --- a/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java +++ b/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java @@ -46,11 +46,9 @@ import org.codehaus.plexus.MutablePlexusContainer; import org.codehaus.plexus.PlexusContainer; import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator; import org.codehaus.plexus.util.dag.CycleDetectedException; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import static org.apache.maven.test.PlexusExtension.getTestFile; +import static org.codehaus.plexus.testing.PlexusExtension.getTestFile; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertSame; diff --git a/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java b/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java index 3952467b42..785958e054 100644 --- a/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java +++ b/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java @@ -27,11 +27,10 @@ import org.apache.maven.model.building.ModelBuildingException; import org.apache.maven.model.building.ModelProblem; import org.apache.maven.repository.RepositorySystem; import org.apache.maven.repository.internal.MavenRepositorySystemUtils; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.codehaus.plexus.PlexusContainer; import org.eclipse.aether.DefaultRepositoryCache; import org.eclipse.aether.DefaultRepositorySystemSession; -import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import javax.inject.Inject; diff --git a/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java b/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java index 5b4f10b28c..39036fbfab 100644 --- a/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java +++ b/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java @@ -19,7 +19,7 @@ package org.apache.maven.project; * under the License. */ -import static org.apache.maven.test.PlexusExtension.getTestFile; +import static org.codehaus.plexus.testing.PlexusExtension.getTestFile; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.is; diff --git a/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java b/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java index 012d06dc89..ff7cc050f6 100644 --- a/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java +++ b/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java @@ -28,7 +28,7 @@ import java.util.Properties; import javax.inject.Inject; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; import org.apache.maven.model.Plugin; import org.apache.maven.model.PluginExecution; @@ -39,11 +39,10 @@ import org.apache.maven.repository.internal.MavenRepositorySystemUtils; import org.eclipse.aether.DefaultRepositorySystemSession; import org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory; import org.eclipse.aether.repository.LocalRepository; -import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import static org.apache.maven.test.PlexusExtension.getBasedir; +import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.endsWith; import static org.hamcrest.Matchers.lessThan; diff --git a/maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java b/maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java index 9a1d9e3c61..709b88cba3 100644 --- a/maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java +++ b/maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java @@ -35,7 +35,7 @@ import org.eclipse.aether.impl.RemoteRepositoryManager; import org.eclipse.aether.repository.RemoteRepository; import org.junit.jupiter.api.Test; -import static org.apache.maven.test.PlexusExtension.getBasedir; +import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; import static org.hamcrest.Matchers.startsWith; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; diff --git a/maven-core/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java b/maven-core/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java index 85c69303ec..7d5150d4d6 100644 --- a/maven-core/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java +++ b/maven-core/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java @@ -22,7 +22,7 @@ package org.apache.maven.project.artifact; import javax.inject.Inject; import org.apache.maven.repository.RepositorySystem; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.codehaus.plexus.PlexusContainer; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java b/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java index e278d8b9a9..b6e987e2f6 100644 --- a/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java +++ b/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java @@ -20,10 +20,7 @@ package org.apache.maven.rtinfo.internal; */ import org.apache.maven.rtinfo.RuntimeInformation; -import org.apache.maven.test.PlexusTest; -import org.codehaus.plexus.ContainerConfiguration; -import org.codehaus.plexus.PlexusConstants; -import org.junit.jupiter.api.BeforeEach; +import org.codehaus.plexus.testing.PlexusTest; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertFalse; diff --git a/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java b/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java index d0524d7428..e13382b532 100644 --- a/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java +++ b/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java @@ -32,7 +32,7 @@ import org.apache.maven.project.harness.PomTestWrapper; import org.apache.maven.repository.RepositorySystem; import org.apache.maven.repository.internal.MavenRepositorySystemUtils; import org.apache.maven.settings.io.xpp3.SettingsXpp3Reader; -import org.apache.maven.test.PlexusTest; +import org.codehaus.plexus.testing.PlexusTest; import org.codehaus.plexus.util.ReaderFactory; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import org.eclipse.aether.DefaultRepositorySystemSession; @@ -43,7 +43,7 @@ import org.junit.jupiter.api.Test; import javax.inject.Inject; -import static org.apache.maven.test.PlexusExtension.getBasedir; +import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; import static org.junit.jupiter.api.Assertions.assertEquals; @PlexusTest diff --git a/maven-model-transform/pom.xml b/maven-model-transform/pom.xml index 110e669cf1..2839d525ed 100644 --- a/maven-model-transform/pom.xml +++ b/maven-model-transform/pom.xml @@ -33,8 +33,8 @@ under the License. - org.apache.maven - maven-test-support + org.junit.jupiter + junit-jupiter-params test diff --git a/maven-resolver-provider/pom.xml b/maven-resolver-provider/pom.xml index bb51172462..ad66af3537 100644 --- a/maven-resolver-provider/pom.xml +++ b/maven-resolver-provider/pom.xml @@ -98,8 +98,8 @@ under the License. - org.apache.maven - maven-test-support + org.codehaus.plexus + plexus-testing test diff --git a/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractRepositoryTestCase.java b/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractRepositoryTestCase.java index 026f30bb84..7660616c05 100644 --- a/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractRepositoryTestCase.java +++ b/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractRepositoryTestCase.java @@ -23,19 +23,18 @@ import java.net.MalformedURLException; import javax.inject.Inject; -import org.apache.maven.test.PlexusTest; import org.apache.maven.repository.internal.util.ConsoleRepositoryListener; import org.apache.maven.repository.internal.util.ConsoleTransferListener; import org.codehaus.plexus.PlexusContainer; +import org.codehaus.plexus.testing.PlexusTest; import org.eclipse.aether.DefaultRepositorySystemSession; import org.eclipse.aether.RepositorySystem; import org.eclipse.aether.RepositorySystemSession; import org.eclipse.aether.repository.LocalRepository; import org.eclipse.aether.repository.RemoteRepository; -import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; -import static org.apache.maven.test.PlexusExtension.getTestFile; +import static org.codehaus.plexus.testing.PlexusExtension.getTestFile; @PlexusTest public abstract class AbstractRepositoryTestCase diff --git a/maven-test-support/pom.xml b/maven-test-support/pom.xml deleted file mode 100644 index 9abe4401fa..0000000000 --- a/maven-test-support/pom.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven - maven - 4.0.0-alpha-1-SNAPSHOT - - - maven-test-support - - Maven Test Support - Test support classes for maven. - - - - org.junit.jupiter - junit-jupiter-engine - ${junitVersion} - - - org.junit.jupiter - junit-jupiter-params - ${junitVersion} - - - com.google.inject - guice - no_aop - - - javax.inject - javax.inject - - - org.codehaus.plexus - plexus-utils - - - org.codehaus.plexus - plexus-interpolation - - - org.codehaus.plexus - plexus-cipher - - - org.eclipse.sisu - org.eclipse.sisu.plexus - - - org.codehaus.plexus - plexus-component-annotations - - - - diff --git a/maven-test-support/src/main/java/org/apache/maven/test/PlexusExtension.java b/maven-test-support/src/main/java/org/apache/maven/test/PlexusExtension.java deleted file mode 100644 index c001a6a83c..0000000000 --- a/maven-test-support/src/main/java/org/apache/maven/test/PlexusExtension.java +++ /dev/null @@ -1,341 +0,0 @@ -package org.apache.maven.test; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* - * Copyright 2001-2006 Codehaus Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import java.io.File; -import java.io.InputStream; -import java.util.Collections; - -import org.codehaus.plexus.ContainerConfiguration; -import org.codehaus.plexus.DefaultContainerConfiguration; -import org.codehaus.plexus.DefaultPlexusContainer; -import org.codehaus.plexus.PlexusConstants; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.PlexusContainerException; -import org.codehaus.plexus.component.repository.exception.ComponentLifecycleException; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; -import org.codehaus.plexus.configuration.PlexusConfiguration; -import org.codehaus.plexus.context.Context; -import org.codehaus.plexus.context.DefaultContext; -import org.junit.jupiter.api.extension.AfterEachCallback; -import org.junit.jupiter.api.extension.BeforeEachCallback; -import org.junit.jupiter.api.extension.ExtensionContext; - -/** - * This is a slightly modified version of the original plexus class - * available at https://raw.githubusercontent.com/codehaus-plexus/plexus-containers/master/plexus-container-default/ - * src/main/java/org/codehaus/plexus/PlexusTestCase.java - * in order to migrate the tests to JUnit 4. - * - * @author Jason van Zyl - * @author Trygve Laugstøl - * @author Michal Maczka - * @author Guillaume Nodet - */ -public class PlexusExtension implements BeforeEachCallback, AfterEachCallback -{ - private ExtensionContext context; - private PlexusContainer container; - - private static String basedir; - - @Override - public void beforeEach( ExtensionContext context ) - throws Exception - { - basedir = getBasedir(); - this.context = context; - - getContainer().addComponent( getContainer(), PlexusContainer.class.getName() ); - - ( (DefaultPlexusContainer) getContainer() ).addPlexusInjector( Collections.emptyList(), - binder -> binder.requestInjection( context.getRequiredTestInstance() ) ); - } - - @SuppressWarnings( "ResultOfMethodCallIgnored" ) - protected void setupContainer() - { - // ---------------------------------------------------------------------------- - // Context Setup - // ---------------------------------------------------------------------------- - - DefaultContext context = new DefaultContext(); - - context.put( "basedir", getBasedir() ); - - customizeContext( context ); - - boolean hasPlexusHome = context.contains( "plexus.home" ); - - if ( !hasPlexusHome ) - { - File f = getTestFile( "target/plexus-home" ); - - if ( !f.isDirectory() ) - { - f.mkdir(); - } - - context.put( "plexus.home", f.getAbsolutePath() ); - } - - // ---------------------------------------------------------------------------- - // Configuration - // ---------------------------------------------------------------------------- - - String config = getCustomConfigurationName(); - - ContainerConfiguration containerConfiguration = new DefaultContainerConfiguration() - .setName( "test" ) - .setContext( context.getContextData() ); - - if ( config != null ) - { - containerConfiguration.setContainerConfiguration( config ); - } - else - { - String resource = getConfigurationName( null ); - - containerConfiguration.setContainerConfiguration( resource ); - } - - customizeContainerConfiguration( containerConfiguration ); - - try - { - container = new DefaultPlexusContainer( containerConfiguration ); - } - catch ( PlexusContainerException e ) - { - throw new IllegalArgumentException( "Failed to create plexus container.", e ); - } - } - - /** - * Allow custom test case implementations do augment the default container configuration before - * executing tests. - * - * @param containerConfiguration {@link ContainerConfiguration}. - */ - protected void customizeContainerConfiguration( ContainerConfiguration containerConfiguration ) - { - containerConfiguration.setAutoWiring( true ); - containerConfiguration.setClassPathScanning( PlexusConstants.SCANNING_INDEX ); - } - - protected void customizeContext( Context context ) - { - } - - protected PlexusConfiguration customizeComponentConfiguration() - { - return null; - } - - @Override - public void afterEach( ExtensionContext context ) - throws Exception - { - if ( container != null ) - { - container.dispose(); - - container = null; - } - } - - public PlexusContainer getContainer() - { - if ( container == null ) - { - setupContainer(); - } - - return container; - } - - protected InputStream getConfiguration() - throws Exception - { - return getConfiguration( null ); - } - - protected InputStream getConfiguration( String subname ) - throws Exception - { - return getResourceAsStream( getConfigurationName( subname ) ); - } - - protected String getCustomConfigurationName() - { - return null; - } - - /** - * Allow the retrieval of a container configuration that is based on the name - * of the test class being run. So if you have a test class called org.foo.FunTest, then - * this will produce a resource name of org/foo/FunTest.xml which would be used to - * configure the Plexus container before running your test. - * - * @param subname the subname - * @return A configruation name - */ - protected String getConfigurationName( String subname ) - { - Class testClass = context.getRequiredTestClass(); - for ( Class clazz = testClass; - clazz != null; - clazz = clazz.getSuperclass() ) - { - String name = clazz.getName().replace( '.', '/' ) + ".xml"; - if ( testClass.getClassLoader().getResource( name ) != null ) - { - return name; - } - } - return null; - } - - protected InputStream getResourceAsStream( String resource ) - { - return context.getRequiredTestClass().getResourceAsStream( resource ); - } - - protected ClassLoader getClassLoader() - { - return context.getRequiredTestClass().getClassLoader(); - } - - // ---------------------------------------------------------------------- - // Container access - // ---------------------------------------------------------------------- - - @SuppressWarnings( "unchecked" ) - protected T lookup( String componentKey ) - throws ComponentLookupException - { - return (T) getContainer().lookup( componentKey ); - } - - @SuppressWarnings( "unchecked" ) - protected T lookup( String role, - String roleHint ) - throws ComponentLookupException - { - return (T) getContainer().lookup( role, roleHint ); - } - - protected T lookup( Class componentClass ) - throws ComponentLookupException - { - return getContainer().lookup( componentClass ); - } - - protected T lookup( Class componentClass, String roleHint ) - throws ComponentLookupException - { - return getContainer().lookup( componentClass, roleHint ); - } - - protected void release( Object component ) - throws ComponentLifecycleException - { - getContainer().release( component ); - } - - // ---------------------------------------------------------------------- - // Helper methods for sub classes - // ---------------------------------------------------------------------- - - public static File getTestFile( String path ) - { - return new File( getBasedir(), path ); - } - - public static File getTestFile( String basedir, - String path ) - { - File basedirFile = new File( basedir ); - - if ( !basedirFile.isAbsolute() ) - { - basedirFile = getTestFile( basedir ); - } - - return new File( basedirFile, path ); - } - - public static String getTestPath( String path ) - { - return getTestFile( path ).getAbsolutePath(); - } - - public static String getTestPath( String basedir, - String path ) - { - return getTestFile( basedir, path ).getAbsolutePath(); - } - - public static String getBasedir() - { - if ( basedir != null ) - { - return basedir; - } - - basedir = System.getProperty( "basedir" ); - - if ( basedir == null ) - { - basedir = new File( "" ).getAbsolutePath(); - } - - return basedir; - } - - public String getTestConfiguration() - { - return getTestConfiguration( context.getRequiredTestClass() ); - } - - public static String getTestConfiguration( Class clazz ) - { - String s = clazz.getName().replace( '.', '/' ); - - return s.substring( 0, s.indexOf( "$" ) ) + ".xml"; - } -} diff --git a/maven-test-support/src/main/java/org/apache/maven/test/PlexusTest.java b/maven-test-support/src/main/java/org/apache/maven/test/PlexusTest.java deleted file mode 100644 index e46228bd47..0000000000 --- a/maven-test-support/src/main/java/org/apache/maven/test/PlexusTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.apache.maven.test; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -import org.junit.jupiter.api.extension.ExtendWith; - -/** - * Plexus test - */ -@Retention( RetentionPolicy.RUNTIME ) -@ExtendWith( PlexusExtension.class ) -@Target( ElementType.TYPE ) -public @interface PlexusTest -{ - -} diff --git a/maven-test-support/src/site/site.xml b/maven-test-support/src/site/site.xml deleted file mode 100644 index e475330c40..0000000000 --- a/maven-test-support/src/site/site.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - ${project.scm.url} - - - - - - - - - - - - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 818c3d0fcb..ee2f76f0c7 100644 --- a/pom.xml +++ b/pom.xml @@ -83,7 +83,6 @@ under the License. maven-bom - maven-test-support maven-plugin-api maven-builder-support maven-model @@ -197,11 +196,6 @@ under the License. maven-compat ${project.version} - - org.apache.maven - maven-test-support - ${project.version} - org.apache.maven maven-slf4j-provider @@ -456,6 +450,18 @@ under the License. 2.2 test + + org.codehaus.plexus + plexus-testing + 1.0.0 + test + + + org.junit.jupiter + junit-jupiter-params + ${junitVersion} + test +