com.googlecode.refit.mojo
Class FitRunnerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.googlecode.refit.mojo.FitRunnerMojo
All Implemented Interfaces:
RunnerListener, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class FitRunnerMojo
extends org.apache.maven.plugin.AbstractMojo
implements RunnerListener

Mojo to run Fit tests via a Fixture

Author:
Mauro Talevi, Harald Wellmann

Field Summary
protected  boolean caseSensitive
          Flag to indicate that path names are case sensitive
protected  List<String> classpathElements
          Classpath.
protected  boolean ignoreFailures
          The option to ignore fixture failures
protected  String outputDirectory
          The output directory where the results of Fit processing is written to
protected  String[] parseTags
          The parse tags used to identify the Fit tables.
protected  boolean skip
          Flag for skipping Fit execution.
protected  String sourceDirectory
          The source directory containing the Fit fixtures
protected  String sourceExcludes
          The filter for source file excludes, relative to the source directory, as CSV patterns.
protected  String sourceIncludes
          The filter for source file includes, relative to the source directory, as CSV patterns.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
FitRunnerMojo()
           
 
Method Summary
 void afterSuite()
           
 void afterTest(TestResult result)
           
 void beforeTest(String testPath)
           
 void execute()
           
protected  ClasspathClassLoader getTestClassLoader()
           
protected  void run(String sourceDirectory, boolean caseSensitive, String sourceIncludes, String sourceExcludes, String outputDirectory)
           
 
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
 

Field Detail

classpathElements

protected List<String> classpathElements
Classpath.


sourceDirectory

protected String sourceDirectory
The source directory containing the Fit fixtures


caseSensitive

protected boolean caseSensitive
Flag to indicate that path names are case sensitive


sourceIncludes

protected String sourceIncludes
The filter for source file includes, relative to the source directory, as CSV patterns.


sourceExcludes

protected String sourceExcludes
The filter for source file excludes, relative to the source directory, as CSV patterns.


parseTags

protected String[] parseTags
The parse tags used to identify the Fit tables.


outputDirectory

protected String outputDirectory
The output directory where the results of Fit processing is written to


ignoreFailures

protected boolean ignoreFailures
The option to ignore fixture failures


skip

protected boolean skip
Flag for skipping Fit execution.

Constructor Detail

FitRunnerMojo

public FitRunnerMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getTestClassLoader

protected ClasspathClassLoader getTestClassLoader()

run

protected void run(String sourceDirectory,
                   boolean caseSensitive,
                   String sourceIncludes,
                   String sourceExcludes,
                   String outputDirectory)
            throws Exception
Throws:
Exception

beforeTest

public void beforeTest(String testPath)
Specified by:
beforeTest in interface RunnerListener

afterTest

public void afterTest(TestResult result)
Specified by:
afterTest in interface RunnerListener

afterSuite

public void afterSuite()
Specified by:
afterSuite in interface RunnerListener


Copyright © 2011. All Rights Reserved.