|
Griffon 1.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.junit.runners.BlockJUnit4ClassRunner
org.codehaus.griffon.test.junit4.runner.GriffonTestCaseRunner
class GriffonTestCaseRunner extends BlockJUnit4ClassRunner
Property Summary | |
---|---|
def |
app
|
def |
mode
|
def |
testTargetPatterns
|
Constructor Summary | |
GriffonTestCaseRunner(Class testClass, GriffonTestTargetPattern[] testTargetPatterns)
|
|
GriffonTestCaseRunner(Class testClass, GriffonTestMode mode, GriffonApplication app, GriffonTestTargetPattern[] testTargetPatterns)
|
Method Summary | |
---|---|
protected List
|
computeTestMethods()
|
protected Statement
|
methodBlock(FrameworkMethod method)
This is the only suitable hook that allows us to wrap the before/after methods in transactions etc. |
protected def
|
validateMode()
|
protected Statement
|
withAfters(FrameworkMethod method, Object target, Statement statement)
|
protected Statement
|
withBefores(FrameworkMethod method, Object target, Statement statement)
|
protected def
|
withGriffonTestEnvironment(Statement statement, Object test)
|
private Statement
|
withRules(FrameworkMethod method, Object target, Statement statement)
|
Property Detail |
---|
final def app
final def mode
final def testTargetPatterns
Constructor Detail |
---|
GriffonTestCaseRunner(Class testClass, GriffonTestTargetPattern[] testTargetPatterns)
GriffonTestCaseRunner(Class testClass, GriffonTestMode mode, GriffonApplication app, GriffonTestTargetPattern[] testTargetPatterns)
Method Detail |
---|
protected List computeTestMethods()
protected Statement methodBlock(FrameworkMethod method)
protected def validateMode()
protected Statement withAfters(FrameworkMethod method, Object target, Statement statement)
protected Statement withBefores(FrameworkMethod method, Object target, Statement statement)
protected def withGriffonTestEnvironment(Statement statement, Object test)
private Statement withRules(FrameworkMethod method, Object target, Statement statement)
Groovy Documentation