Package org.seedstack.seed.testing.spi
Interface TestContext
-
public interface TestContextThe testing context, allowing to access current test information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<?>testClass()Returns the current test class.Optional<io.nuun.kernel.api.Kernel>testKernel()Returns the kernel used for running the current test if any.Optional<Method>testMethod()Returns the current test method if any.StringtestName()Returns a name for the current test.
-
-
-
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.
-
-