Package groovy.junit5.plugin
Class JUnit5Runner
- java.lang.Object
- 
- groovy.junit5.plugin.JUnit5Runner
 
- 
- All Implemented Interfaces:
- GroovyRunner
 
 public class JUnit5Runner extends java.lang.Object implements GroovyRunner Integration code for running JUnit5 tests in Groovy.
- 
- 
Constructor SummaryConstructors Constructor Description JUnit5Runner()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRun(java.lang.Class<?> scriptClass, GroovyClassLoader loader)Utility method to check via reflection if the parsed class appears to be a JUnit5 test, i.e.java.lang.Objectrun(java.lang.Class<?> scriptClass, GroovyClassLoader loader)Utility method to run a JUnit 5 test.
 
- 
- 
- 
Method Detail- 
canRunpublic boolean canRun(java.lang.Class<?> scriptClass, GroovyClassLoader loader)Utility method to check via reflection if the parsed class appears to be a JUnit5 test, i.e. checks whether it appears to be using the relevant annotations.- Specified by:
- canRunin interface- GroovyRunner
- Parameters:
- scriptClass- the class we want to check
- loader- the GroovyClassLoader to use to find classes
- Returns:
- true if the class appears to be a compatible test
 
 - 
runpublic java.lang.Object run(java.lang.Class<?> scriptClass, GroovyClassLoader loader)Utility method to run a JUnit 5 test.- Specified by:
- runin interface- GroovyRunner
- Parameters:
- scriptClass- the class we want to run as a test
- loader- the class loader to use
- Returns:
- the result of running the test
 
 
- 
 
-