public class JUnit5Runner extends Object implements GroovyRunner
Constructor and Description |
---|
JUnit5Runner() |
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 JUnit5
test, i.e.
|
Object |
run(Class<?> scriptClass,
GroovyClassLoader loader)
Utility method to run a JUnit 5 test.
|
public boolean canRun(Class<?> scriptClass, GroovyClassLoader loader)
canRun
in interface GroovyRunner
scriptClass
- the class we want to checkloader
- the GroovyClassLoader to use to find classespublic Object run(Class<?> scriptClass, GroovyClassLoader loader)
run
in interface GroovyRunner
scriptClass
- the class we want to run as a testloader
- the class loader to use