spring-framework / org.springframework.test.context.support / DefaultTestContext / <init>

<init>

DefaultTestContext(testContext: DefaultTestContext)

Copy constructor for creating a new DefaultTestContext based on the attributes and immutable state of the supplied context.

Immutable state includes all arguments supplied to the standard constructor.

Exceptions

NullPointerException - if the supplied DefaultTestContext is null

DefaultTestContext(testClass: Class<*>, mergedContextConfiguration: MergedContextConfiguration, cacheAwareContextLoaderDelegate: CacheAwareContextLoaderDelegate)

Construct a new DefaultTestContext from the supplied arguments.

Parameters

testClass - the test class for this test context

mergedContextConfiguration - the merged application context configuration for this test context

cacheAwareContextLoaderDelegate - the delegate to use for loading and closing the application context for this test context