Package org.apache.groovy.plugin
Interface GroovyRunner
- All Known Implementing Classes:
JUnit5Runner
,TestNgRunner
public interface GroovyRunner
Classes which can run scripts should implement this interface.
- Since:
- 2.5.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canRun
(Class<?> scriptClass, GroovyClassLoader loader) Returnstrue
if this runner is able to run the given class.run
(Class<?> scriptClass, GroovyClassLoader loader) Runs the given class.
-
Method Details
-
canRun
Returnstrue
if this runner is able to run the given class.- Parameters:
scriptClass
- class to runloader
- used to locate classes and resources- Returns:
- true if given class can be run, else false
-
run
Runs the given class.- Parameters:
scriptClass
- class to runloader
- used to locate classes and resources- Returns:
- result of running the class
-