Package org.apache.groovy.plugin
Interface GroovyRunner
- All Known Subinterfaces:
- GroovyRunner
- All Known Implementing Classes:
- JUnit5Runner,- TestNgRunner,- TestNgRunner
public interface GroovyRunner
Classes which can run scripts should implement this interface.
- Since:
- 2.5.0
- 
Method SummaryModifier and Type Method Description booleancanRun(java.lang.Class<?> scriptClass, GroovyClassLoader loader)Returnstrueif this runner is able to run the given class.java.lang.Objectrun(java.lang.Class<?> scriptClass, GroovyClassLoader loader)Runs the given class.
- 
Method Details- 
canRunReturnstrueif this runner is able to run the given class.- Parameters:
- scriptClass- class to run
- loader- used to locate classes and resources
- Returns:
- true if given class can be run, else false
 
- 
runRuns the given class.- Parameters:
- scriptClass- class to run
- loader- used to locate classes and resources
- Returns:
- result of running the class
 
 
-