xmlBlaster 2.1.0 API

org.xmlBlaster.test.contrib.replication
Class TestHelperClasses

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.custommonkey.xmlunit.XMLTestCase
              extended by org.xmlBlaster.test.contrib.replication.TestHelperClasses
All Implemented Interfaces:
junit.framework.Test, org.custommonkey.xmlunit.XMLConstants, org.custommonkey.xmlunit.XSLTConstants

public class TestHelperClasses
extends org.custommonkey.xmlunit.XMLTestCase

Test helper classes as for example beans used for the configuration. Does not need a DB nor xmlBlaster running.

Author:
Michele Laghi

Field Summary
private static java.util.logging.Logger log
           
 
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
TestHelperClasses()
          Default ctor.
TestHelperClasses(java.lang.String arg0)
          Constructor for TestHelperClasses.
 
Method Summary
private  SqlInfo createMsg(I_Info info, java.lang.String oldFirst, java.lang.String oldSecond, java.lang.String first, java.lang.String second, java.lang.String fifth, int replKey)
           
static void main(java.lang.String[] args)
          Start the test.
protected  void setUp()
          Configure database access.
private  DbPool setUpDbPool(I_Info info)
          Creates a database pooling instance and puts it to info.
protected  void tearDown()
           
 void testFileWriterCallback()
           
 void testInfo()
          Test the replacement of variables in the info object.
 void testInfoHelper()
           
 void testSearchableConfig()
           
 void testTableMapper()
           
 void testTableToWatchInfoForAllToken()
           
 void testTableToWatchInfoKeys()
           
 void testTableToWatchInfoStatic()
           
 void testTableToWatchInfoValues()
           
 void testVersionTransformerCache()
           
 void testVersionTransformerCacheInternal()
           
 
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

log

private static java.util.logging.Logger log
Constructor Detail

TestHelperClasses

public TestHelperClasses()
Default ctor.


TestHelperClasses

public TestHelperClasses(java.lang.String arg0)
Constructor for TestHelperClasses.

Parameters:
arg0 -
Method Detail

main

public static void main(java.lang.String[] args)
Start the test.
  java -Ddb=oracle junit.swingui.TestRunner -noloading org.xmlBlaster.test.contrib.replication.TestHelperClasses
 

Parameters:
args - Command line settings

setUp

protected void setUp()
              throws java.lang.Exception
Configure database access.

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception
See Also:
TestCase#setUp()

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testVersionTransformerCacheInternal

public void testVersionTransformerCacheInternal()

testFileWriterCallback

public void testFileWriterCallback()

testVersionTransformerCache

public void testVersionTransformerCache()

testTableToWatchInfoKeys

public final void testTableToWatchInfoKeys()

testInfoHelper

public final void testInfoHelper()

testTableMapper

public final void testTableMapper()

testTableToWatchInfoValues

public final void testTableToWatchInfoValues()

testInfo

public final void testInfo()
Test the replacement of variables in the info object.


testTableToWatchInfoStatic

public final void testTableToWatchInfoStatic()

setUpDbPool

private DbPool setUpDbPool(I_Info info)
Creates a database pooling instance and puts it to info.

Parameters:
info - The configuration
Returns:
The created pool

testTableToWatchInfoForAllToken

public final void testTableToWatchInfoForAllToken()

createMsg

private SqlInfo createMsg(I_Info info,
                          java.lang.String oldFirst,
                          java.lang.String oldSecond,
                          java.lang.String first,
                          java.lang.String second,
                          java.lang.String fifth,
                          int replKey)

testSearchableConfig

public final void testSearchableConfig()

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.