public class TestNgRunner extends java.lang.Object implements GroovyRunner
Constructor and Description |
---|
TestNgRunner() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRun(java.lang.Class scriptClass,
GroovyClassLoader loader)
Utility method to check via reflection if the parsed class appears to be a TestNG
test, i.e.
|
java.lang.Object |
run(java.lang.Class scriptClass,
GroovyClassLoader loader)
Utility method to run a TestNG test.
|
public boolean canRun(java.lang.Class scriptClass, GroovyClassLoader loader)
canRun
in interface GroovyRunner
scriptClass
- the class we want to checkloader
- the GroovyClassLoader to use to find classespublic java.lang.Object run(java.lang.Class scriptClass, GroovyClassLoader loader)
run
in interface GroovyRunner
scriptClass
- the class we want to run as a testloader
- the class loader to use