org.apache.servicemix.tck
Class SpringTestSupport
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.servicemix.tck.SpringTestSupport
- All Implemented Interfaces:
- Test
- Direct Known Subclasses:
- TestSupport
public abstract class SpringTestSupport
- extends TestCase
- Version:
- $Revision: 678656 $
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
log
protected transient Log log
context
protected org.springframework.context.support.AbstractXmlApplicationContext context
transformer
protected org.apache.servicemix.jbi.jaxp.SourceTransformer transformer
messageCount
protected int messageCount
jbi
protected SpringJBIContainer jbi
SpringTestSupport
protected SpringTestSupport(String name)
SpringTestSupport
protected SpringTestSupport()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp in class TestCase
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown in class TestCase
- Throws:
Exception
getBean
protected Object getBean(String name)
createBeanFactory
protected abstract org.springframework.context.support.AbstractXmlApplicationContext createBeanFactory()
textValueOfXPath
protected String textValueOfXPath(Node node,
String xpath)
throws TransformerException
- Performs an XPath expression and returns the Text content of the root
node.
- Parameters:
node - xpath -
- Returns:
-
- Throws:
TransformerException
getSourceFromClassPath
protected Source getSourceFromClassPath(String fileOnClassPath)
assertMessagesReceived
protected void assertMessagesReceived(MessageList messageList,
int count)
throws javax.jbi.messaging.MessagingException,
TransformerException,
ParserConfigurationException,
IOException,
SAXException
- Throws:
javax.jbi.messaging.MessagingException
TransformerException
ParserConfigurationException
IOException
SAXException
assertExchangeWorked
protected void assertExchangeWorked(javax.jbi.messaging.MessageExchange me)
throws Exception
- Throws:
Exception
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.