org.nuiton.plugin
Class AbstractMojoTest.MojoTestRule
java.lang.Object
org.junit.rules.TestWatchman
org.junit.rules.TestName
org.nuiton.plugin.AbstractMojoTest.MojoTestRule
- All Implemented Interfaces:
- org.junit.rules.MethodRule
- 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.TestWatchman |
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.runners.model.FrameworkMethod method)
- Overrides:
starting in class org.junit.rules.TestName
finished
public void finished(org.junit.runners.model.FrameworkMethod method)
- Overrides:
finished in class org.junit.rules.TestWatchman
getMojo
public P getMojo()
getPomFile
public java.io.File getPomFile()
getTestDir
public java.io.File getTestDir()
getTest
public AbstractMojoTest<P> getTest()
getTestClass
public java.lang.Class<?> getTestClass()
Copyright © 2009-2010 CodeLutin. All Rights Reserved.