Interface TestContext


  • public interface TestContext
    The testing context, allowing to access current test information.
    • Method Detail

      • testName

        String testName()
        Returns a name for the current test.
        Returns:
        the current test name.
      • testClass

        Class<?> testClass()
        Returns the current test class.
        Returns:
        the current test class.
      • testMethod

        Optional<Method> testMethod()
        Returns the current test method if any.
        Returns:
        the current test method if any.
      • testKernel

        Optional<io.nuun.kernel.api.Kernel> testKernel()
        Returns the kernel used for running the current test if any.
        Returns:
        the kernel used for the current test if any.