public class TestNgRunner extends Object implements GroovyRunner
| Constructor and Description | 
|---|
TestNgRunner()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canRun(Class scriptClass,
      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,
   GroovyClassLoader loader)
Utility method to run a TestNG test. 
 | 
public boolean canRun(Class scriptClass, GroovyClassLoader loader)
canRun in interface GroovyRunnerscriptClass - the class we want to checkloader - the GroovyClassLoader to use to find classespublic Object run(Class scriptClass, GroovyClassLoader loader)
run in interface GroovyRunnerscriptClass - the class we want to run as a testloader - the class loader to use