com.googlecode.refit.mojo.spring
Class SpringFitRunnerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.googlecode.refit.mojo.FitRunnerMojo
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
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
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.
SpringFitRunnerMojo
public SpringFitRunnerMojo()
getTestClassLoader
protected ClasspathClassLoader getTestClassLoader()
- Overrides:
getTestClassLoader in class FitRunnerMojo
Copyright © 2011. All Rights Reserved.