Class JUnit5Adapter

java.lang.Object
io.github.mov2day.unifiedtest.framework.JUnit5Adapter
All Implemented Interfaces:
TestFrameworkAdapter

public class JUnit5Adapter extends Object implements TestFrameworkAdapter
JUnit 5 framework adapter for UnifiedTest. Handles registration of test listeners and configuration for JUnit 5 test execution.
  • Constructor Details

    • JUnit5Adapter

      public JUnit5Adapter()
  • Method Details

    • isApplicable

      public boolean isApplicable(org.gradle.api.Project project)
      Description copied from interface: TestFrameworkAdapter
      Checks if this adapter is applicable for the given project.
      Specified by:
      isApplicable in interface TestFrameworkAdapter
      Parameters:
      project - the Gradle project to check
      Returns:
      true if this adapter can be used with the project
    • registerListeners

      public void registerListeners(org.gradle.api.Project project, org.gradle.api.tasks.testing.Test testTask, UnifiedTestResultCollector collector, ConsoleReporter reporter)
      Description copied from interface: TestFrameworkAdapter
      Registers test listeners for the framework with the given project and test task.
      Specified by:
      registerListeners in interface TestFrameworkAdapter
      Parameters:
      project - the Gradle project
      testTask - the test task to configure
      collector - collector for test results
      reporter - reporter for console output
    • getName

      public String getName()
      Description copied from interface: TestFrameworkAdapter
      Gets the name of the test framework this adapter supports.
      Specified by:
      getName in interface TestFrameworkAdapter
      Returns:
      the name of the test framework