org.codehaus.groovy.grails.test
Class DefaultGrailsTestHelper

java.lang.Object
  extended by org.codehaus.groovy.grails.test.DefaultGrailsTestHelper
All Implemented Interfaces:
groovy.lang.GroovyObject, GrailsTestHelper

public class DefaultGrailsTestHelper
extends Object
implements GrailsTestHelper, groovy.lang.GroovyObject


Field Summary
protected  File baseDir
           
protected  ClassLoader parentLoader
           
protected  groovy.lang.Closure resourceResolver
           
protected  File testClassesDir
           
 
Constructor Summary
DefaultGrailsTestHelper(BuildSettings settings, ClassLoader classLoader, groovy.lang.Closure resourceResolver)
           
 
Method Summary
protected  groovy.lang.MetaClass $getStaticMetaClass()
           
protected  ClassLoader createClassLoader(String type)
           
 junit.framework.TestSuite createTests(List<String> testNames, String type)
           
 junit.framework.TestSuite createTestSuite()
           
 junit.framework.TestSuite createTestSuite(Class clazz)
           
 String fileToClassName(File file, File baseDir)
           
 ClassLoader getCurrentClassLoader()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 String getTestSuffix()
           
 Object invokeMethod(String method, Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 void setTestSuffix(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseDir

protected File baseDir

testClassesDir

protected File testClassesDir

parentLoader

protected ClassLoader parentLoader

resourceResolver

protected groovy.lang.Closure resourceResolver
Constructor Detail

DefaultGrailsTestHelper

public DefaultGrailsTestHelper(BuildSettings settings,
                               ClassLoader classLoader,
                               groovy.lang.Closure resourceResolver)
Method Detail

getTestSuffix

public String getTestSuffix()

setTestSuffix

public void setTestSuffix(String value)

createTests

public junit.framework.TestSuite createTests(List<String> testNames,
                                             String type)
Specified by:
createTests in interface GrailsTestHelper

createTestSuite

public junit.framework.TestSuite createTestSuite(Class clazz)

createTestSuite

public junit.framework.TestSuite createTestSuite()

fileToClassName

public String fileToClassName(File file,
                              File baseDir)

getCurrentClassLoader

public ClassLoader getCurrentClassLoader()

createClassLoader

protected ClassLoader createClassLoader(String type)

$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