org.apache.maven.it
Class MavenITmng4786AntBased21xMojoSupportTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.it.AbstractMavenIntegrationTestCase
              extended by org.apache.maven.it.MavenITmng4786AntBased21xMojoSupportTest
All Implemented Interfaces:
Test

public class MavenITmng4786AntBased21xMojoSupportTest
extends AbstractMavenIntegrationTestCase

This is a test set for MNG-4786.

Author:
Benjamin Bentmann

Field Summary
 
Fields inherited from class org.apache.maven.it.AbstractMavenIntegrationTestCase
ALL_MAVEN_VERSIONS
 
Constructor Summary
MavenITmng4786AntBased21xMojoSupportTest()
           
 
Method Summary
 void testit()
          Verify that plugins whose mojos are implemented as Ant scripts and use the Maven 2.1.x Ant support can be invoked.
 
Methods inherited from class org.apache.maven.it.AbstractMavenIntegrationTestCase
matchesVersionRange, newVerifier, newVerifier, newVerifier, newVerifier, requiresJavaVersion, requiresMavenVersion, runTest, setupLocalRepo
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenITmng4786AntBased21xMojoSupportTest

public MavenITmng4786AntBased21xMojoSupportTest()
Method Detail

testit

public void testit()
            throws Exception
Verify that plugins whose mojos are implemented as Ant scripts and use the Maven 2.1.x Ant support can be invoked. The essential bits here are that Ant-based mojos are instantiated via a custom component factory, yet must undergo the same IoC as for regular Java components. And the 2.1.x Ant support actually requires injection of a logger.

Throws:
Exception


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.