org.codehaus.castor.maven.xmlctf
Class AbstractTestSuiteMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.castor.maven.xmlctf.AbstractTestSuiteMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
TextTestSuiteMojo

public abstract class AbstractTestSuiteMojo
extends org.apache.maven.plugin.AbstractMojo

Abstract Maven Mojo that initialises the Junit test cases from xml Subclasses implement the runJUnit method to provide the Runner (eg. text, swing, ..)

Since:
1.2

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractTestSuiteMojo()
           
 
Method Summary
 void execute()
           
abstract  void runJUnit(junit.framework.Test testSuite)
          For subclasses to implement to provide a test runner.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTestSuiteMojo

public AbstractTestSuiteMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

runJUnit

public abstract void runJUnit(junit.framework.Test testSuite)
                       throws org.apache.maven.plugin.MojoExecutionException
For subclasses to implement to provide a test runner.

Parameters:
testSuite - The TestSuite to be executed
Throws:
org.apache.maven.plugin.MojoExecutionException - If test execution fails.


Copyright © 2011. All Rights Reserved.