|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.Assert org.apache.cxf.test.AbstractCXFTest org.apache.cxf.test.AbstractCXFSpringTest
public abstract class AbstractCXFSpringTest
Base class for tests that use a Spring bean specification to load up components for testing. Unlike the classes that come with Spring, it doesn't drag in the JUnit 3 hierarchy, and it doesn't inject into the test itself from the beans.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.cxf.test.AbstractCXFTest |
---|
AbstractCXFTest.TestMessageObserver |
Field Summary | |
---|---|
protected static org.springframework.context.support.GenericApplicationContext |
applicationContext
|
Fields inherited from class org.apache.cxf.test.AbstractCXFTest |
---|
bus, testUtilities |
Constructor Summary | |
---|---|
protected |
AbstractCXFSpringTest()
Load up all the beans from the XML files returned by the getConfigLocations method. |
Method Summary | ||
---|---|---|
protected void |
additionalSpringConfiguration(org.springframework.context.support.GenericApplicationContext context)
subclasses may override this. |
|
Bus |
createBus()
|
|
protected org.springframework.context.ApplicationContext |
getApplicationContext()
|
|
protected
|
getBean(Class<T> type,
String beanName)
Convenience method for the common case of retrieving a bean from the context. |
|
protected abstract String[] |
getConfigLocations()
Return an array of resource specifications. |
|
protected void |
setConfigContextClass(Class<?> configContextClass)
|
|
void |
setupBeans()
|
|
void |
setUpBus()
|
|
void |
teardownBeans()
|
Methods inherited from class org.apache.cxf.test.AbstractCXFTest |
---|
addNamespace, assertInvalid, assertNoFault, assertValid, assertValidBoolean, assertXPathEquals, getBasedir, getBus, getNamespaceContext, getNamespaces, getResourceAsReader, getResourceAsStream, getTestFile, getWSDLDocument, invoke, invoke, invokeBytes, shutdownBus |
Methods inherited from class org.junit.Assert |
---|
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.springframework.context.support.GenericApplicationContext applicationContext
Constructor Detail |
---|
protected AbstractCXFSpringTest()
Exception
Method Detail |
---|
public void setupBeans() throws Exception
Exception
public void setUpBus() throws Exception
setUpBus
in class AbstractCXFTest
Exception
public Bus createBus() throws BusException
createBus
in class AbstractCXFTest
BusException
public void teardownBeans()
protected abstract String[] getConfigLocations()
for the syntax.
protected org.springframework.context.ApplicationContext getApplicationContext()
protected void additionalSpringConfiguration(org.springframework.context.support.GenericApplicationContext context) throws Exception
context
-
Exception
protected <T> T getBean(Class<T> type, String beanName)
T
- Type of the bean object.type
- Type of the bean object.beanName
- ID of the bean.
protected void setConfigContextClass(Class<?> configContextClass)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |