maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: maven-components/maven-plugin/src/test/java/org/apache/maven/plugin/generator AbstractGeneratorTestCase.java PluginDescriptorGeneratorTest.java
Date Fri, 25 Jun 2004 18:43:40 GMT
jvanzyl     2004/06/25 11:43:40

  Modified:    maven-plugin/src/test/java/org/apache/maven/plugin/generator
                        AbstractGeneratorTestCase.java
                        PluginDescriptorGeneratorTest.java
  Log:
  o validator must run
  
  Revision  Changes    Path
  1.5       +3 -1      maven-components/maven-plugin/src/test/java/org/apache/maven/plugin/generator/AbstractGeneratorTestCase.java
  
  Index: AbstractGeneratorTestCase.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugin/src/test/java/org/apache/maven/plugin/generator/AbstractGeneratorTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractGeneratorTestCase.java	24 Jun 2004 16:36:16 -0000	1.4
  +++ AbstractGeneratorTestCase.java	25 Jun 2004 18:43:40 -0000	1.5
  @@ -49,6 +49,8 @@
           String pom = new File( basedir, "src/test/resources/source/pom.xml" ).getPath();
   
           generator.execute( sourceDirectory, destinationDirectory, pom );
  +
  +        validate();
       }
   
       // ----------------------------------------------------------------------
  
  
  
  1.7       +6 -12     maven-components/maven-plugin/src/test/java/org/apache/maven/plugin/generator/PluginDescriptorGeneratorTest.java
  
  Index: PluginDescriptorGeneratorTest.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugin/src/test/java/org/apache/maven/plugin/generator/PluginDescriptorGeneratorTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PluginDescriptorGeneratorTest.java	24 Jun 2004 16:36:16 -0000	1.6
  +++ PluginDescriptorGeneratorTest.java	25 Jun 2004 18:43:40 -0000	1.7
  @@ -43,30 +43,24 @@
   
           MojoDescriptor mojoDescriptor = (MojoDescriptor) pluginDescriptor.getMojos().get(
0 );
   
  -        assertEquals( "compiler", mojoDescriptor.getId() );
  +        assertEquals( "idea:ideaOne", mojoDescriptor.getId() );
   
  -        assertEquals( "org.apache.maven.plugin.idea.IdeaPlugin", mojoDescriptor.getImplementation()
);
  +        assertEquals( "org.apache.maven.plugin.idea.IdeaMojoOne", mojoDescriptor.getImplementation()
);
   
           assertEquals( "singleton", mojoDescriptor.getInstantiationStrategy() );
   
           // ----------------------------------------------------------------------
  -        // Goals
  -        // ----------------------------------------------------------------------
  -
  -        assertEquals( "compile", mojoDescriptor.getGoal() );
  -
  -        // ----------------------------------------------------------------------
           // Parameters
           // ----------------------------------------------------------------------
   
           List parameters = mojoDescriptor.getParameters();
   
  -        assertEquals( 4, parameters.size() );
  +        assertEquals( 1, parameters.size() );
   
           Parameter pd = (Parameter) mojoDescriptor.getParameters().get( 0 );
   
  -        assertEquals( "sourceDirectory", pd.getName() );
  +        assertEquals( "project", pd.getName() );
   
  -        assertEquals( "#project.build.sourceDirectory", pd.getExpression() );
  +        assertEquals( "#project", pd.getExpression() );
       }
   }
  
  
  

Mime
View raw message