open class DefaultTestContext : TestContext
Default implementation of the TestContext interface.
Author
Sam Brannen
Author
Juergen Hoeller
Author
Rob Harrop
Since
4.0
DefaultTestContext(testContext: DefaultTestContext)
Copy constructor for creating a new Immutable state includes all arguments supplied to the standard constructor. DefaultTestContext(testClass: Class<*>, mergedContextConfiguration: MergedContextConfiguration, cacheAwareContextLoaderDelegate: CacheAwareContextLoaderDelegate)
Construct a new |
open fun attributeNames(): Array<String> |
|
open fun getApplicationContext(): ApplicationContext
Get the ApplicationContext for this test context. The default implementation delegates to the CacheAwareContextLoaderDelegate that was supplied when this |
|
open fun getAttribute(name: String): Any |
|
fun getTestClass(): Class<*> |
|
fun getTestException(): Throwable |
|
fun getTestInstance(): Any |
|
fun getTestMethod(): Method |
|
open fun hasAttribute(name: String): Boolean |
|
open fun markApplicationContextDirty(hierarchyMode: HierarchyMode): Unit
Mark the ApplicationContext associated with this test context as dirty (i.e., by removing it from the context cache and closing it). The default implementation delegates to the CacheAwareContextLoaderDelegate that was supplied when this |
|
open fun removeAttribute(name: String): Any |
|
open fun setAttribute(name: String, value: Any): Unit |
|
open fun toString(): String
Provide a String representation of this test context's state. |
|
open fun updateState(testInstance: Any, testMethod: Method, testException: Throwable): Unit |