org.codehaus.groovy.grails.test.junit4.runner
Class GrailsTestCaseRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by org.codehaus.groovy.grails.test.junit4.runner.GrailsTestCaseRunner
All Implemented Interfaces:
groovy.lang.GroovyObject, org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class GrailsTestCaseRunner
extends org.junit.runners.BlockJUnit4ClassRunner
implements groovy.lang.GroovyObject


Constructor Summary
GrailsTestCaseRunner(Class testClass)
           
GrailsTestCaseRunner(Class testClass, GrailsTestMode mode, ApplicationContext appCtx)
           
 
Method Summary
protected  groovy.lang.MetaClass $getStaticMetaClass()
           
protected  List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
           
 Object getAppCtx()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getMode()
           
 Object getProperty(String property)
           
 Object invokeMethod(String method, Object arguments)
           
protected  org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
protected  Object validateMode()
           
protected  org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod method, Object target, org.junit.runners.model.Statement statement)
           
protected  org.junit.runners.model.Statement withBefores(org.junit.runners.model.FrameworkMethod method, Object target, org.junit.runners.model.Statement statement)
           
protected  Object withGrailsTestEnvironment(org.junit.runners.model.Statement statement, Object test)
           
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, createTest, describeChild, getChildren, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, filter, getDescription, getName, getTestClass, run, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrailsTestCaseRunner

public GrailsTestCaseRunner(Class testClass)

GrailsTestCaseRunner

public GrailsTestCaseRunner(Class testClass,
                            GrailsTestMode mode,
                            ApplicationContext appCtx)
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

getMode

public Object getMode()

getAppCtx

public Object getAppCtx()

validateMode

protected Object validateMode()

methodBlock

protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
Overrides:
methodBlock in class org.junit.runners.BlockJUnit4ClassRunner

withGrailsTestEnvironment

protected Object withGrailsTestEnvironment(org.junit.runners.model.Statement statement,
                                           Object test)

computeTestMethods

protected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
Overrides:
computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunner

withBefores

protected org.junit.runners.model.Statement withBefores(org.junit.runners.model.FrameworkMethod method,
                                                        Object target,
                                                        org.junit.runners.model.Statement statement)
Overrides:
withBefores in class org.junit.runners.BlockJUnit4ClassRunner

withAfters

protected org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod method,
                                                       Object target,
                                                       org.junit.runners.model.Statement statement)
Overrides:
withAfters in class org.junit.runners.BlockJUnit4ClassRunner

$getStaticMetaClass

protected groovy.lang.MetaClass $getStaticMetaClass()