ccl.servlet.test
Class XMLImportHandlerTest
java.lang.Object
|
+--ccl.util.Test
|
+--ccl.servlet.test.XMLImportHandlerTest
- All Implemented Interfaces:
- java.lang.Runnable
- public class XMLImportHandlerTest
- extends Test
This class conducts some basic tests of the
ccl.servlet.XMLImportHandler
class using a postgresql database, if it exists. In that
case it creates a database with name ccltest. Be sure you
don't have a database with the same name in use, as that
would be dropped with all its data. If you have no postgresql
in your system, the tests will be skipped.
Method Summary |
protected void |
_doIt()
Insert your test code into the _doIt() method and
test bugs with 'bugIf( boolean expression );' or
'bugIf( boolean expression, "comment about what went wrong" );'. |
static void |
main(java.lang.String[] asArg_)
example code for a real test main method |
Methods inherited from class ccl.util.Test |
_enterSubTest, _exitSubTest, _getValue, _increment, _setTests, _showLiveSignals, assert, assert, assertNotNull, assertNotNull, bugIf, bugIf, bugIf, getBugs, getComment, getGlobalTests, getLocalTests, getTestClassDirectory, getTestDirectory, getValue, initialize, isTest, isTiming, isVerbose, printResult, redirectStandardStreams, run, setBug, setTests, setTiming, setValue, setVerbose, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XMLImportHandlerTest
public XMLImportHandlerTest()
XMLImportHandlerTest
public XMLImportHandlerTest(Test pTest_)
_doIt
protected void _doIt()
throws java.lang.Exception
- Insert your test code into the _doIt() method and
test bugs with 'bugIf( boolean expression );' or
'bugIf( boolean expression, "comment about what went wrong" );'.
Then just invoke the main routine.
- Overrides:
_doIt
in class Test
- Throws:
java.lang.Exception
- if anything goes wrong the test fails as well.
main
public static void main(java.lang.String[] asArg_)
- Description copied from class:
Test
- example code for a real test main method
Test pTest = (Test)(new SomeTest());
pTest.initialize( argv );
pTest.setVerbose( true );
pTest.run();
printResult( pTest );
System.exit( 0 );