com.googlecode.refit.mojo.spring
Class SpringFitRunnerMojo

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

public class SpringFitRunnerMojo
extends FitRunnerMojo

Mojo to run FIT tests which supports Spring dependency injection for fixtures. The fixture classes to be handled by spring have be annotated with ContextConfiguration, specifying the location of the Spring XML configuration. NOTE: By default, properties from parent Mojos are not visible to the Javadoc annotation processor on derived Mojos. The maven-inherit-plugin relieves this restriction by providing the extendsPlugin annotation, instructing the plugin builder to include the inherited properties.

Author:
Harald Wellmann

Field Summary
protected  String applicationContext
          EXPERIMENTAL, DO NOT USE.
 
Fields inherited from class com.googlecode.refit.mojo.FitRunnerMojo
caseSensitive, classpathElements, ignoreFailures, outputDirectory, parseTags, skip, sourceDirectory, sourceExcludes, sourceIncludes
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
SpringFitRunnerMojo()
           
 
Method Summary
protected  ClasspathClassLoader getTestClassLoader()
           
 
Methods inherited from class com.googlecode.refit.mojo.FitRunnerMojo
afterSuite, afterTest, beforeTest, execute, run
 
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

applicationContext

protected String applicationContext
EXPERIMENTAL, DO NOT USE.

The location of an XML Spring context definition for a standard application context. If this is parameter is missing, the plugin will use the Spring Test Context and build contexts for all fixture classes annotated with ContextConfiguration.

Constructor Detail

SpringFitRunnerMojo

public SpringFitRunnerMojo()
Method Detail

getTestClassLoader

protected ClasspathClassLoader getTestClassLoader()
Overrides:
getTestClassLoader in class FitRunnerMojo


Copyright © 2011. All Rights Reserved.