|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
---|---|
ClassLoader |
classLoader
|
Constructor Summary | |
DoSetContext(ClassLoader loader)
|
Method Summary | |
---|---|
Object |
evaluate(GroovyCodeSource codeSource)
Evaluates some script against the current Binding and returns the result |
Object |
evaluate(String scriptText, String fileName)
Evaluates some script against the current Binding and returns the result |
Object |
evaluate(String scriptText, String fileName, String codeBase)
Evaluates some script against the current Binding and returns the result. |
Object |
evaluate(File file)
Evaluates some script against the current Binding and returns the result |
Object |
evaluate(String scriptText)
Evaluates some script against the current Binding and returns the result |
Object |
evaluate(InputStream in)
Evaluates some script against the current Binding and returns the result |
Object |
evaluate(InputStream in, String fileName)
Evaluates some script against the current Binding and returns the result |
String |
generateScriptName()
|
Object |
getVariable(String name)
|
boolean |
isJUnit3Test(Class scriptClass)
Utility method to check through reflection if the class appears to be a JUnit 3.8.x test, i.e. |
boolean |
isJUnit4Test(Class scriptClass)
Utility method to check via reflection if the parsed class appears to be a JUnit4 test, i.e. |
boolean |
isTestNgTest(Class scriptClass)
Utility method to check via reflection if the parsed class appears to be a TestNG test, i.e. |
Script |
parse(InputStream in, String fileName)
Parses the given script and returns it ready to be run |
Script |
parse(GroovyCodeSource codeSource)
Parses the given script and returns it ready to be run. |
Script |
parse(File file)
Parses the given script and returns it ready to be run |
Script |
parse(String scriptText)
Parses the given script and returns it ready to be run |
Script |
parse(String scriptText, String fileName)
|
Script |
parse(InputStream in)
Parses the given script and returns it ready to be run |
Class |
parseClass(GroovyCodeSource codeSource)
Parses the groovy code contained in codeSource and returns a java class. |
Object |
run()
|
Object |
run(String scriptText, String fileName, def args)
Runs the given script text with command line arguments |
Object |
run(InputStream in, String fileName, def args)
Runs the given script with command line arguments |
Object |
runJUnit3Test(Class scriptClass)
Run the specified class extending TestCase as a unit test. |
Object |
runJUnit4Test(Class scriptClass)
|
Object |
runMainOrTestOrRunnable(Class scriptClass, def args)
|
Object |
runRunnable(Class scriptClass, def args)
|
Object |
runTestNgTest(Class scriptClass)
|
void |
setVariable(String name, Object value)
|
Constructor Detail |
---|
public DoSetContext(ClassLoader loader)
Method Detail |
---|
public Object evaluate(GroovyCodeSource codeSource)
public Object evaluate(String scriptText, String fileName)
public Object evaluate(String scriptText, String fileName, String codeBase)
public Object evaluate(File file)
public Object evaluate(String scriptText)
public Object evaluate(InputStream in)
public Object evaluate(InputStream in, String fileName)
String generateScriptName()
public Object getVariable(String name)
boolean isJUnit3Test(Class scriptClass)
boolean isJUnit4Test(Class scriptClass)
boolean isTestNgTest(Class scriptClass)
public Script parse(InputStream in, String fileName)
public Script parse(GroovyCodeSource codeSource)
public Script parse(File file)
public Script parse(String scriptText)
public Script parse(String scriptText, String fileName)
public Script parse(InputStream in)
Class parseClass(GroovyCodeSource codeSource)
public Object run()
public Object run(String scriptText, String fileName, def args)
public Object run(InputStream in, String fileName, def args)
Object runJUnit3Test(Class scriptClass)
Object runJUnit4Test(Class scriptClass)
Object runMainOrTestOrRunnable(Class scriptClass, def args)
Object runRunnable(Class scriptClass, def args)
Object runTestNgTest(Class scriptClass)
public void setVariable(String name, Object value)