File tree 2 files changed +12
-8
lines changed
src/test/java/org/codehaus/plexus/util/introspection
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,6 @@ limitations under the License.
55
55
</properties >
56
56
57
57
<dependencies >
58
- <dependency >
59
- <groupId >org.apache.maven.shared</groupId >
60
- <artifactId >maven-plugin-testing-harness</artifactId >
61
- <version >1.1</version >
62
- <scope >test</scope >
63
- </dependency >
64
58
<dependency >
65
59
<groupId >org.openjdk.jmh</groupId >
66
60
<artifactId >jmh-core</artifactId >
Original file line number Diff line number Diff line change 27
27
import java .util .List ;
28
28
import java .util .Map ;
29
29
30
- import org .apache .maven .plugin .testing .stubs .MavenProjectStub ;
31
30
import org .junit .Before ;
32
31
import org .junit .Test ;
33
32
@@ -462,6 +461,7 @@ public static class Project
462
461
private String version ;
463
462
464
463
private Map <String , Artifact > artifactMap = new HashMap <String , Artifact >();
464
+ private String description ;
465
465
466
466
public void setModelVersion ( String modelVersion )
467
467
{
@@ -569,6 +569,16 @@ public Map<String, Artifact> getArtifactMap()
569
569
{
570
570
return artifactMap ;
571
571
}
572
+
573
+ public void setDescription ( String description )
574
+ {
575
+ this .description = description ;
576
+ }
577
+
578
+ public String getDescription ()
579
+ {
580
+ return description ;
581
+ }
572
582
}
573
583
574
584
public static class Build
@@ -630,7 +640,7 @@ public Object getValue()
630
640
public void testRootPropertyRegression ()
631
641
throws Exception
632
642
{
633
- MavenProjectStub project = new MavenProjectStub ();
643
+ Project project = new Project ();
634
644
project .setDescription ( "c:\\ \\ org\\ apache\\ test" );
635
645
Object evalued = ReflectionValueExtractor .evaluate ( "description" , project );
636
646
assertNotNull ( evalued );
You can’t perform that action at this time.
0 commit comments