|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.custommonkey.xmlunit.XMLTestCase org.xmlBlaster.test.contrib.replication.TestReplication
public class TestReplication
Test basic functionality for the replication. This test needs an instance of xmlBlaster running.
To run most of the tests you need to have a database (for example Postgres).
The connection configuration (url, password etc.) is configured as JVM
property or in #createTest(I_Info, Map)
and
#setUpDbPool(I_Info)
Nested Class Summary | |
---|---|
private class |
TestReplication.Pusher
|
Field Summary | |
---|---|
private ReplicationAgent |
agent
|
private int |
counter
|
private DbMetaHelper |
dbHelper
|
private MsgInterceptor |
interceptor
|
private static java.util.logging.Logger |
log
|
private I_Info |
readerInfo
|
private java.lang.String |
replPrefix
|
private long |
sleepDelay
|
private SpecificHelper |
specificHelper
|
private java.lang.String |
tableName
|
private java.lang.String |
tableName2
|
private I_Info |
writerInfo
|
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 | |
---|---|
TestReplication()
Default ctor. |
|
TestReplication(java.lang.String arg0)
Constructor for TestReplication. |
Method Summary | |
---|---|
private boolean |
compareBlobs(byte[] first,
byte[] second,
java.lang.StringBuffer comments)
|
private I_DbSpecific |
getDbSpecific()
|
static void |
main(java.lang.String[] args)
Start the test. |
void |
probeMultithreading()
Tests the same operations as already tested in TestSyncPart but with the complete Replication. |
private void |
setProp(I_Info info,
java.lang.String key,
java.lang.String val,
boolean force)
Helper method to fill the properties. |
protected void |
setUp()
Configure database access. |
private void |
setupProperties(I_Info readerInfo,
I_Info writerInfo,
boolean extraUser)
This method is invoked directly by setUp. |
protected void |
tearDown()
|
void |
testAllCharBlobs()
Tests the same operations as already tested in TestSyncPart but with the complete Replication. |
void |
testAllCharVarchar()
Tests the same operations as already tested in TestSyncPart but with the complete Replication. |
void |
testBigBlobs()
Tests the same operations as already tested in TestSyncPart but with the complete Replication. |
void |
testCreateAndInsert()
If the table does not exist we expect a null ResultSet |
void |
testNonAlphaCharOnTable()
Tests the same operations as already tested in TestSyncPart but with the complete Replication. |
void |
testNullEntriesOnTable()
Tests the same operations as already tested in TestSyncPart but with the complete Replication. |
void |
testPerformAllOperationsOnTable()
Tests the same operations as already tested in TestSyncPart but with the complete Replication. |
void |
testUntrimmedSpaces()
Tests the same operations as already tested in TestSyncPart but with the complete Replication. |
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 |
Field Detail |
---|
private static java.util.logging.Logger log
private I_Info readerInfo
private I_Info writerInfo
private ReplicationAgent agent
private SpecificHelper specificHelper
private DbMetaHelper dbHelper
private java.lang.String tableName
private java.lang.String tableName2
private java.lang.String replPrefix
private long sleepDelay
private MsgInterceptor interceptor
private int counter
Constructor Detail |
---|
public TestReplication()
public TestReplication(java.lang.String arg0)
arg0
- Method Detail |
---|
public static void main(java.lang.String[] args)
java -Ddb=oracle junit.swingui.TestRunner -noloading org.xmlBlaster.test.contrib.replication.TestReplication
args
- Command line settingsprivate final boolean compareBlobs(byte[] first, byte[] second, java.lang.StringBuffer comments)
private void setProp(I_Info info, java.lang.String key, java.lang.String val, boolean force)
info
- key
- val
- private void setupProperties(I_Info readerInfo, I_Info writerInfo, boolean extraUser)
readerInfo
- The info object for the reader (the dbWatcher).writerInfo
- The info object for the writer (the DbWriter).private I_DbSpecific getDbSpecific()
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
TestCase#setUp()
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public final void testCreateAndInsert() throws java.lang.Exception
java.lang.Exception
- Any type is possiblepublic final void testPerformAllOperationsOnTable()
public final void testNullEntriesOnTable()
public final void testUntrimmedSpaces()
public final void testNonAlphaCharOnTable()
public final void testAllCharBlobs()
public final void testAllCharVarchar()
public final void testBigBlobs()
public final void probeMultithreading()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |