JavaScript is disabled on your browser.
  • Summary:
  • Nested Field Constructor
  • Method
  • | Detail:
  • Field Constructor
  • Method
Package: groovy.junit5.plugin

[Java] Class JUnit5Runner

  • All Implemented Interfaces and Traits:
    GroovyRunner

    public class JUnit5Runner
    extends Object
    implements GroovyRunner 

    Integration code for running JUnit5 tests in Groovy.

    • Method Detail

      • @Override
        public boolean canRun(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.

        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

      • @Override
        public Object run(Class<?> scriptClass, GroovyClassLoader loader)

        Utility method to run a JUnit 5 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

  • Summary:
  • Nested Field Constructor
  • Method
  • | Detail:
  • Field Constructor
  • Method

Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /