org.nuiton.plugin
Class AbstractMojoTest.MojoTestRule

java.lang.Object
  extended by org.junit.rules.TestWatchman
      extended by org.junit.rules.TestName
          extended by 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 :


Constructor Summary
AbstractMojoTest.MojoTestRule()
           
 
Method Summary
 void finished(org.junit.runners.model.FrameworkMethod method)
           
 P getMojo()
           
 java.io.File getPomFile()
           
 AbstractMojoTest<P> getTest()
           
 java.lang.Class<?> getTestClass()
           
 java.io.File getTestDir()
           
 void starting(org.junit.runners.model.FrameworkMethod method)
           
 
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
 

Constructor Detail

AbstractMojoTest.MojoTestRule

public AbstractMojoTest.MojoTestRule()
Method Detail

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 CodeLutin. All Rights Reserved.