public class TestScopeApplicationContext extends Object
A test scope application context.
Constructor and Description |
---|
TestScopeApplicationContext(org.springframework.context.ApplicationContext applicationContext,
boolean closable)
Creates new instance of
TestScopeApplicationContext class with given application context. |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ApplicationContext |
getApplicationContext()
Retrieves
ApplicationContext instance. |
boolean |
isClosable()
Retrieves whether the application context should be closed after the tests.
|
public TestScopeApplicationContext(org.springframework.context.ApplicationContext applicationContext, boolean closable)
Creates new instance of TestScopeApplicationContext
class with given application context.
applicationContext
- the ApplicationContext
closable
- whether the application context should be closed after the testsIllegalArgumentException
- is applicationContext is nullpublic org.springframework.context.ApplicationContext getApplicationContext()
Retrieves ApplicationContext
instance.
ApplicationContext
public boolean isClosable()
Retrieves whether the application context should be closed after the tests.
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.