Package: groovy.junit6.plugin

## [Java] Class JUnit6Runner

- groovy.junit6.plugin.JUnit6Runner

- All Implemented Interfaces and Traits:
    GroovyRunner

      public class JUnit6Runner
      extends Object
      implements GroovyRunner

  Integration code for running JUnit 6 (Jupiter) tests in Groovy.

  Since:
    6.0.0

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public boolean` | `canRun(Class<?> scriptClass, GroovyClassLoader loader)` Utility method to check via reflection if the parsed class appears to be a JUnit Jupiter test, i.e. checks whether it appears to be using the relevant annotations.
    `` | `public Object` | `run(Class<?> scriptClass, GroovyClassLoader loader)` Utility method to run a JUnit 6 test.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### public boolean canRun(Class<?> scriptClass, GroovyClassLoader loader)

      Utility method to check via reflection if the parsed class appears to be a JUnit Jupiter test, i.e. checks whether it appears to be using the relevant annotations.

      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

    - #### public Object run(Class<?> scriptClass, GroovyClassLoader loader)

      Utility method to run a JUnit 6 test.

      Parameters:
        `scriptClass` - the class we want to run as a test
        `loader` - the class loader to use
      Returns:
        the result of running the test