File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed 
src/test/java/org/codehaus/plexus/util/introspection Expand file tree Collapse file tree 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.
5555  </properties >
5656
5757  <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 >
6458    <dependency >
6559      <groupId >org.openjdk.jmh</groupId >
6660      <artifactId >jmh-core</artifactId >
Original file line number Diff line number Diff line change 2727import  java .util .List ;
2828import  java .util .Map ;
2929
30- import  org .apache .maven .plugin .testing .stubs .MavenProjectStub ;
3130import  org .junit .Before ;
3231import  org .junit .Test ;
3332
@@ -462,6 +461,7 @@ public static class Project
462461        private  String  version ;
463462
464463        private  Map <String , Artifact > artifactMap  = new  HashMap <String , Artifact >();
464+         private  String  description ;
465465
466466        public  void  setModelVersion ( String  modelVersion  )
467467        {
@@ -569,6 +569,16 @@ public Map<String, Artifact> getArtifactMap()
569569        {
570570            return  artifactMap ;
571571        }
572+ 
573+         public  void  setDescription ( String  description  )
574+         {
575+             this .description  = description ;
576+         }
577+ 
578+         public  String  getDescription ()
579+         {
580+             return  description ;
581+         }
572582    }
573583
574584    public  static  class  Build 
@@ -630,7 +640,7 @@ public Object getValue()
630640    public  void  testRootPropertyRegression ()
631641        throws  Exception 
632642    {
633-         MavenProjectStub  project  = new  MavenProjectStub ();
643+         Project  project  = new  Project ();
634644        project .setDescription ( "c:\\ \\ org\\ apache\\ test"  );
635645        Object  evalued  = ReflectionValueExtractor .evaluate ( "description" , project  );
636646        assertNotNull ( evalued  );
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments