public class TestScopeApplicationContext extends Object
A test scope application context.
| Constructor and Description |
|---|
TestScopeApplicationContext(org.springframework.context.ApplicationContext applicationContext,
org.jboss.arquillian.test.spi.TestClass testClass,
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. |
org.jboss.arquillian.test.spi.TestClass |
getTestClass()
Retrieves the test class for which this application context has been created.
|
boolean |
isClosable()
Retrieves whether the application context should be closed after the tests.
|
public TestScopeApplicationContext(org.springframework.context.ApplicationContext applicationContext,
org.jboss.arquillian.test.spi.TestClass testClass,
boolean closable)
Creates new instance of TestScopeApplicationContext class with given application context.
applicationContext - the ApplicationContexttestClass - the test class wrapperclosable - whether the application context should be closed after the testsIllegalArgumentException - if applicationContext is null or testClass is nullpublic org.springframework.context.ApplicationContext getApplicationContext()
Retrieves ApplicationContext instance.
ApplicationContextpublic org.jboss.arquillian.test.spi.TestClass getTestClass()
public boolean isClosable()
Retrieves whether the application context should be closed after the tests.
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.