Griffon 1.2.0

org.codehaus.griffon.test.junit4.runner
[Groovy] Class GriffonTestCaseRunner

java.lang.Object
  org.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

app

final def app


mode

final def mode


testTargetPatterns

final def testTargetPatterns


 
Constructor Detail

GriffonTestCaseRunner

GriffonTestCaseRunner(Class testClass, GriffonTestTargetPattern[] testTargetPatterns)


GriffonTestCaseRunner

GriffonTestCaseRunner(Class testClass, GriffonTestMode mode, GriffonApplication app, GriffonTestTargetPattern[] testTargetPatterns)


 
Method Detail

computeTestMethods

protected List computeTestMethods()


methodBlock

protected Statement methodBlock(FrameworkMethod method)
This is the only suitable hook that allows us to wrap the before/after methods in transactions etc. Unfortunately, that means we have to copy most the implementation from BlockJUnit4ClassRunner.


validateMode

protected def validateMode()


withAfters

protected Statement withAfters(FrameworkMethod method, Object target, Statement statement)


withBefores

protected Statement withBefores(FrameworkMethod method, Object target, Statement statement)


withGriffonTestEnvironment

protected def withGriffonTestEnvironment(Statement statement, Object test)


withRules

private Statement withRules(FrameworkMethod method, Object target, Statement statement)


 

Groovy Documentation