public class TestNgRunner extends Object implements org.codehaus.groovy.plugin.GroovyRunner
| Constructor and Description |
|---|
TestNgRunner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRun(Class scriptClass,
groovy.lang.GroovyClassLoader loader)
Utility method to check via reflection if the parsed class appears to be a TestNG
test, i.e.&nsbp;checks whether it appears to be using the relevant TestNG annotations.
|
Object |
run(Class scriptClass,
groovy.lang.GroovyClassLoader loader)
Utility method to run a TestNG test.
|
public boolean canRun(Class scriptClass, groovy.lang.GroovyClassLoader loader)
canRun in interface org.codehaus.groovy.plugin.GroovyRunnerscriptClass - the class we want to checkloader - the GroovyClassLoader to use to find classespublic Object run(Class scriptClass, groovy.lang.GroovyClassLoader loader)
run in interface org.codehaus.groovy.plugin.GroovyRunnerscriptClass - the class we want to run as a testloader - the class loader to use