java.lang.Object | ||
↳ | org.springframework.core.AttributeAccessorSupport | |
↳ | org.springframework.test.context.TestContext |
TestContext encapsulates the context in which a test is executed, agnostic of the actual testing framework in use.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the
application context for this test
context, possibly cached. | |||||||||||
Get the
test class for this test context. | |||||||||||
Get the
exception that was thrown during execution of
the test method . | |||||||||||
Get the current
test instance for this test context. | |||||||||||
Get the current
test method for this test context. | |||||||||||
Call this method to signal that the
application
context associated with this test context is dirty and should
be reloaded. | |||||||||||
Provide a String representation of this test context's state.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.AttributeAccessorSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.core.AttributeAccessor
|
Get the application context
for this test
context, possibly cached.
IllegalStateException | if an error occurs while retrieving the application context |
---|
Get the test class
for this test context.
null
)
Get the exception
that was thrown during execution of
the test method
.
Note: this is a mutable property.
null
if no
exception was thrownGet the current test instance
for this test context.
Note: this is a mutable property.
null
)Get the current test method
for this test context.
Note: this is a mutable property.
null
)Call this method to signal that the application
context
associated with this test context is dirty and should
be reloaded. Do this if a test has modified the context (for example, by
replacing a bean definition).