org.codehaus.groovy.grails.test.support
Class GrailsTestTypeSupport
java.lang.Object
org.codehaus.groovy.grails.test.support.GrailsTestTypeSupport
- All Implemented Interfaces:
- groovy.lang.GroovyObject, GrailsTestType
- Direct Known Subclasses:
- JUnit3GrailsTestType
public abstract class GrailsTestTypeSupport
- extends Object
- implements GrailsTestType, groovy.lang.GroovyObject
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrailsTestTypeSupport
public GrailsTestTypeSupport(String name,
String relativeSourcePath)
getName
public String getName()
- Specified by:
getName
in interface GrailsTestType
getRelativeSourcePath
public String getRelativeSourcePath()
- Specified by:
getRelativeSourcePath
in interface GrailsTestType
getTestTargetPatterns
public GrailsTestTargetPattern[] getTestTargetPatterns()
getCompiledClassesDir
public File getCompiledClassesDir()
getBuildBinding
public groovy.lang.Binding getBuildBinding()
getTestSuffixes
protected List<String> getTestSuffixes()
getTestExtensions
protected List<String> getTestExtensions()
prepare
public int prepare(GrailsTestTargetPattern[] testTargetPatterns,
File compiledClassesDir,
groovy.lang.Binding buildBinding)
- Specified by:
prepare
in interface GrailsTestType
doPrepare
protected abstract int doPrepare()
run
public GrailsTestTypeResult run(GrailsTestEventPublisher eventPublisher)
- Specified by:
run
in interface GrailsTestType
doRun
protected abstract GrailsTestTypeResult doRun(GrailsTestEventPublisher eventPublisher)
cleanup
public void cleanup()
- Specified by:
cleanup
in interface GrailsTestType
getSourceDir
protected File getSourceDir()
getTestClassLoader
protected ClassLoader getTestClassLoader()
findSourceFiles
protected List<File> findSourceFiles(GrailsTestTargetPattern targetPattern)
eachSourceFile
protected void eachSourceFile(groovy.lang.Closure body)
sourceFileToClassName
protected String sourceFileToClassName(File sourceFile)
sourceFileToClassFile
protected File sourceFileToClassFile(File sourceFile)
sourceFileToClass
protected Class sourceFileToClass(File sourceFile)
createSystemOutAndErrSwapper
protected SystemOutAndErrSwapper createSystemOutAndErrSwapper()
loadClass
protected Class loadClass(String className)
$getStaticMetaClass
protected groovy.lang.MetaClass $getStaticMetaClass()
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
Copyright (c) 2005-2009 The Grails project