org.nuiton.plugin
Class AbstractMojoTest.MojoTestRule
java.lang.Object
org.junit.rules.TestWatcher
org.junit.rules.TestName
org.nuiton.plugin.AbstractMojoTest.MojoTestRule
- All Implemented Interfaces:
- org.junit.rules.TestRule
- Enclosing class:
- AbstractMojoTest<P extends org.nuiton.plugin.Plugin>
protected class AbstractMojoTest.MojoTestRule
- extends org.junit.rules.TestName
To offer inside each test method (annotated by a Test) the
following properties :
testDir : location where to find resources for the
test pomFile : location of the pom file to use to build
the mojo mojo : the instanciated and initialized
mojo
| Methods inherited from class org.junit.rules.TestName |
getMethodName |
| Methods inherited from class org.junit.rules.TestWatcher |
apply, failed, succeeded |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMojoTest.MojoTestRule
public AbstractMojoTest.MojoTestRule()
starting
public void starting(org.junit.runner.Description method)
- Overrides:
starting in class org.junit.rules.TestName
finished
public void finished(org.junit.runner.Description method)
- Overrides:
finished in class org.junit.rules.TestWatcher
getMojo
public P getMojo()
getPomFile
public File getPomFile()
getTestDir
public File getTestDir()
getTest
public AbstractMojoTest<P> getTest()
getTestClass
public Class<?> getTestClass()
Copyright © 2009-2012 CodeLutin. All Rights Reserved.