From 1fa7a4c9dea71d430d4fade4d52f8261108c66e2 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Tue, 21 Jun 2022 01:15:37 +0200 Subject: [PATCH] Cleanup unneeded dependencies --- pom.xml | 16 ---------------- .../ReflectionValueExtractorTest.java | 16 +++++++++++++--- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/pom.xml b/pom.xml index daf55b01..fcfc09ba 100644 --- a/pom.xml +++ b/pom.xml @@ -63,7 +63,6 @@ RedundantThrows,NewlineAtEndOfFile,ParameterNumber,MethodLength,FileLength,ModifierOrder 2021-04-26T13:54:25Z 7 - 3.1.0 @@ -110,27 +109,12 @@ 3.0.2 provided - - - org.apache.maven - maven-core - ${mavenVersion} - test - org.codehaus.plexus plexus-utils 3.3.0 test - - org.apache.maven.plugin-testing - maven-plugin-testing-harness - 3.3.0 - test - diff --git a/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java b/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java index 1c9a0e26..775ddc48 100644 --- a/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java +++ b/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java @@ -24,8 +24,6 @@ import java.util.List; import java.util.Map; -import org.apache.maven.plugin.testing.stubs.MavenProjectStub; - import junit.framework.TestCase; /** @@ -353,6 +351,8 @@ public static class Project private Map artifactMap = new HashMap(); + private String description; + public void setModelVersion( String modelVersion ) { this.modelVersion = modelVersion; @@ -461,6 +461,16 @@ public Map getArtifactMap() { return artifactMap; } + + public void setDescription( String description ) + { + this.description = description; + } + + public String getDescription() + { + return description; + } } @@ -517,7 +527,7 @@ public Object getValue() public void testRootPropertyRegression() throws Exception { - MavenProjectStub project = new MavenProjectStub( ); + Project project = new Project(); project.setDescription( "c:\\\\org\\apache\\test" ); Object evalued = ReflectionValueExtractor.evaluate( "description", project ); assertNotNull( evalued );