|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.osesb.utilities.junit.OSESBTestCase
org.osesb.utilities.junit.OSESBDBUnitTestCase
org.osesb.messagepipeline.test.builtinstagesunittest.MessagePipelineTest
public class MessagePipelineTest
A MessagePipelineTest, which is driven by the configuration file specified by the 'testConfiguration' property in Test.properties. For example, MessagePipelineTest-db2-config.xml configures the test to use DB2 and MessagePipelineTest-oracle-config.xml configures the test to use Oracle.
The configured MessagePipeline processes the XML messages as follows: 1. A XMLElementPropagatorPipelineStage extracts and propagates
| Field Summary | |
|---|---|
protected JMSQueueListener |
jmsQueueListener
setUp() starts a org.osesb.connectors.jms.JMSQueueListener to receive messages sent by the JMSClientPipelineStage that is part of the test PipelineConfiguration. |
protected MessagePipeline |
messagePipeline
The MessagePipeline for the test -- see Test.properties and setUp(). |
protected SQLStatementListConfiguration |
sqlStatementListConfiguration
SQLStatementListConfiguration, for the SQLStatement(s) that are used for test assertions. |
protected XMLConfiguration |
testConfiguration
The XMLConfiguration for the test. |
| Fields inherited from class org.osesb.utilities.junit.OSESBDBUnitTestCase |
|---|
dbunitDataSet, dbunitJDBCConnection |
| Fields inherited from class org.osesb.utilities.junit.OSESBTestCase |
|---|
configFile, log, reader, testDataDirectory, testProperties, thisClassName |
| Constructor Summary | |
|---|---|
MessagePipelineTest(java.lang.String name)
Construct a new instance. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
The main method runs all the tests in the text ui |
void |
setUp()
This method is called before a test is executed. |
static junit.framework.Test |
suite()
The suite method runs all the tests |
void |
tearDown()
This method is called after a test is executed. |
void |
testMessagePipelineFailure()
Test MessagePipeline failure, which uses cdcatalog-fail.xml as the input message to the pipeline. |
void |
testMessagePipelineSuccess()
Test MessagePipeline success, which uses cdcatalog-succeed.xml as the input message to the pipeline. |
| Methods inherited from class org.osesb.utilities.junit.OSESBDBUnitTestCase |
|---|
displayStartupMessage, loadDBUnitDatabaseConnection |
| Methods inherited from class org.osesb.utilities.junit.OSESBTestCase |
|---|
getBooleanTestProperty, getIntTestProperty, getLongTestProperty, getTestResourcesAsStreams, getTestResourcesAsText, getTestResourcesFiles, loadTestProperties, readTestFilesAsStreams |
| 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected XMLConfiguration testConfiguration
protected MessagePipeline messagePipeline
protected JMSQueueListener jmsQueueListener
protected SQLStatementListConfiguration sqlStatementListConfiguration
| Constructor Detail |
|---|
public MessagePipelineTest(java.lang.String name)
| Method Detail |
|---|
public static junit.framework.Test suite()
public void setUp()
throws java.lang.Exception
setUp in class OSESBTestCasejava.lang.Exception
public void tearDown()
throws java.lang.Exception
tearDown in class OSESBDBUnitTestCasejava.lang.Exceptionpublic static void main(java.lang.String[] args)
public void testMessagePipelineSuccess()
throws java.lang.Exception
java.lang.Exception
public void testMessagePipelineFailure()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||