|
xmlBlaster 1.6.2 API | ||||||||||
| 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.custommonkey.xmlunit.XMLTestCase
org.xmlBlaster.test.contrib.dbwatcher.TestResultSetToXmlConverter
Test basic functionality.
To run most of the tests you need to have a databse (for example Oracle) and XmlBlaster up and running.
The connection configuration (url, password etc.) is configured
as JVM property or in createTest(I_Info, Map) and
setUpDbPool(I_Info)
DbWatcher| Field Summary | |
private I_DbPool |
dbPool
|
private I_Info |
info
|
private static java.util.logging.Logger |
log
|
private java.util.prefs.Preferences |
prefs
|
private DbWatcher |
processor
|
private java.util.Map |
updateMap
|
| Fields inherited from class junit.framework.TestCase |
|
| Fields inherited from interface org.custommonkey.xmlunit.XSLTConstants |
XSLT_END, XSLT_IDENTITY_TEMPLATE, XSLT_START, XSLT_STRIP_WHITESPACE, XSLT_XML_OUTPUT_NOINDENT |
| Fields inherited from interface org.custommonkey.xmlunit.XMLConstants |
CLOSE_NODE, END_CDATA, END_COMMENT, END_PROCESSING_INSTRUCTION, OPEN_END_NODE, OPEN_START_NODE, START_CDATA, START_COMMENT, START_DOCTYPE, START_PROCESSING_INSTRUCTION, XML_DECLARATION, XMLNS_PREFIX, XPATH_ATTRIBUTE_IDENTIFIER, XPATH_CHARACTER_NODE_IDENTIFIER, XPATH_COMMENT_IDENTIFIER, XPATH_NODE_INDEX_END, XPATH_NODE_INDEX_START, XPATH_PROCESSING_INSTRUCTION_IDENTIFIER, XPATH_SEPARATOR |
| Constructor Summary | |
TestResultSetToXmlConverter()
Default ctor. |
|
TestResultSetToXmlConverter(java.lang.String arg0)
Constructor for TestResultSetToXmlConverter. |
|
| Method Summary | |
static DbWatcher |
createTest(I_Info info,
java.util.Map updateMap)
Creates a DbWatcher instance and listens on MoM messages. |
static void |
main(java.lang.String[] args)
Start the test. |
protected void |
setUp()
Configure database access. |
static DbPool |
setUpDbPool(I_Info info)
Creates a database pooling instance and puts it to info. |
private void |
sleep(long millis)
|
protected void |
tearDown()
|
void |
testGroupedQueryMeatTableStates()
Test synchronous all possible table changes. |
void |
testGroupedTableStates()
Test synchronous all possible table changes. |
void |
testNULLcol()
|
void |
testQueryMeatTableStates()
If the table does not exist we expect a null ResultSet |
void |
testRoundTripWithImplicitMeat()
Test one round trip, the message content is created on the fly. |
void |
testRoundTripWithoutMeat()
Test one round trip, the message content is empty sending an event only. |
void |
testTableStates()
If the table does not exist we expect a null ResultSet |
static void |
writeToFile(java.lang.String topic,
java.lang.String xml)
Dump to file. |
| Methods inherited from class org.custommonkey.xmlunit.XMLTestCase |
assertNodeTestPasses, assertNodeTestPasses, assertNotXpathExists, assertNotXpathExists, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLIdentical, assertXMLIdentical, assertXMLIdentical, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXpathEvaluatesTo, assertXpathEvaluatesTo, assertXpathExists, assertXpathExists, assertXpathNotExists, assertXpathNotExists, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, compareXML, compareXML, compareXML, compareXML, compareXML, setControlParser, setIgnoreWhitespace, setTestParser |
| 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 |
| Methods inherited from interface org.custommonkey.xmlunit.XSLTConstants |
|
| Field Detail |
private static java.util.logging.Logger log
private java.util.prefs.Preferences prefs
private I_Info info
private I_DbPool dbPool
private java.util.Map updateMap
private DbWatcher processor
| Constructor Detail |
public TestResultSetToXmlConverter()
public TestResultSetToXmlConverter(java.lang.String arg0)
arg0 - | Method Detail |
public static void main(java.lang.String[] args)
java -Ddb.password=secret junit.swingui.TestRunner -noloading org.xmlBlaster.test.contrib.dbwatcher.TestResultSetToXmlConverter
args - Command line settings
protected void setUp()
throws java.lang.Exception
java.lang.ExceptionTestCase.setUp()public static DbPool setUpDbPool(I_Info info)
info - The configuration
public static DbWatcher createTest(I_Info info,
java.util.Map updateMap)
throws java.lang.Exception
info - ConfigurationupdateMap - The map for received messages
java.lang.Exception
protected void tearDown()
throws java.lang.Exception
java.lang.Exception
public final void testTableStates()
throws java.lang.Exception
java.lang.Exception - Any type is possible
public final void testNULLcol()
throws java.lang.Exception
java.lang.Exception - Any type is possibleprivate void sleep(long millis)
public final void testQueryMeatTableStates()
throws java.lang.Exception
java.lang.Exception - Any type is possible
public final void testGroupedQueryMeatTableStates()
throws java.lang.Exception
java.lang.Exception - Any type is possible
public final void testGroupedTableStates()
throws java.lang.Exception
java.lang.Exception - Any type is possible
public final void testRoundTripWithImplicitMeat()
throws java.lang.Exception
java.lang.Exception
public final void testRoundTripWithoutMeat()
throws java.lang.Exception
java.lang.Exception
public static void writeToFile(java.lang.String topic,
java.lang.String xml)
throws java.lang.Exception
topic - The file name bodyxml - The file content
java.lang.Exception - IOException
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||