|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.testng.TestNgRunner
public class TestNgRunner
Integration code for running TestNG tests in Groovy.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
@SuppressWarnings("unchecked") public boolean canRun(java.lang.Class scriptClass, GroovyClassLoader loader)
scriptClass
- the class we want to checkloader
- the GroovyClassLoader to use to find classes
public java.lang.Object run(java.lang.Class scriptClass, GroovyClassLoader loader)
scriptClass
- the class we want to run as a testloader
- the class loader to use
Groovy Documentation