org.apache.servicemix.tck
Class SpringTestSupport

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.servicemix.tck.SpringTestSupport
All Implemented Interfaces:
Test
Direct Known Subclasses:
TestSupport

public abstract class SpringTestSupport
extends TestCase

Version:
$Revision: 678656 $

Field Summary
protected  org.springframework.context.support.AbstractXmlApplicationContext context
           
protected  SpringJBIContainer jbi
           
protected  Log log
           
protected  int messageCount
           
protected  org.apache.servicemix.jbi.jaxp.SourceTransformer transformer
           
 
Constructor Summary
protected SpringTestSupport()
           
protected SpringTestSupport(String name)
           
 
Method Summary
protected  void assertExchangeWorked(javax.jbi.messaging.MessageExchange me)
           
protected  void assertMessagesReceived(MessageList messageList, int count)
           
protected abstract  org.springframework.context.support.AbstractXmlApplicationContext createBeanFactory()
           
protected  Object getBean(String name)
           
protected  Source getSourceFromClassPath(String fileOnClassPath)
           
protected  void setUp()
           
protected  void tearDown()
           
protected  String textValueOfXPath(Node node, String xpath)
          Performs an XPath expression and returns the Text content of the root node.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

SpringTestSupport

protected SpringTestSupport(String name)

SpringTestSupport

protected SpringTestSupport()
Method Detail

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.