public class TestContext
extends java.lang.Object
TestExecutionListeners.| Constructor and Description |
|---|
TestContext(io.micronaut.context.ApplicationContext applicationContext,
java.lang.Class<?> testClass,
java.lang.reflect.AnnotatedElement testMethod,
java.lang.Object testInstance,
java.lang.Throwable testException) |
| Modifier and Type | Method and Description |
|---|---|
io.micronaut.context.ApplicationContext |
getApplicationContext() |
java.lang.Class<?> |
getTestClass() |
java.lang.Throwable |
getTestException() |
java.lang.Object |
getTestInstance() |
java.lang.reflect.AnnotatedElement |
getTestMethod() |
public TestContext(io.micronaut.context.ApplicationContext applicationContext,
java.lang.Class<?> testClass,
java.lang.reflect.AnnotatedElement testMethod,
java.lang.Object testInstance,
java.lang.Throwable testException)
applicationContext - The application contexttestClass - The test classtestMethod - The test methodtestInstance - The test instancetestException - The exception thrown by the test executionpublic io.micronaut.context.ApplicationContext getApplicationContext()
public java.lang.Class<?> getTestClass()
public java.lang.Throwable getTestException()
public java.lang.reflect.AnnotatedElement getTestMethod()
public java.lang.Object getTestInstance()