I have checked in code to use MockRunner instead of a real database for test SQLUnit JDBC code. Here is a link to the initial discussions I had with Alwin Ibba from the MockRunner project:
The code is checked into the test/java/mock/ directory. There is a test file with some 10 or so tests in test/mock/test.xml. I plan to add more tests and add functionality to the test framework as well. Right now, it supports returning outparams (including Oracle REF CURSORS) and Exceptions as well as multiple resultsets.
Anyway, more to follow on this thread. This wil be packaged in the next release (3.7). If you have comments let me know.
Thanks
Sujit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Release 3.7 included mock tests for some basic functionality of the test tag, such as returning multiple resultsets, exceptions and REF_CURSOR outparams.
The current CVS version has added more support for things such as updatecounts as well. The mock tests have also been expanded to include other SQLUnit tags such as batchtest and diff. These features will be available in release 3.8.
In the meantime, if you are following this thread, would appreciate it if you could look over the tests currently under test/mock/*xml in CVS and suggest other tests that may not have been covered.
Thanks
Sujit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have checked in code to use MockRunner instead of a real database for test SQLUnit JDBC code. Here is a link to the initial discussions I had with Alwin Ibba from the MockRunner project:
https://sourceforge.net/forum/forum.php?thread_id=1074036&forum_id=293194
The code is checked into the test/java/mock/ directory. There is a test file with some 10 or so tests in test/mock/test.xml. I plan to add more tests and add functionality to the test framework as well. Right now, it supports returning outparams (including Oracle REF CURSORS) and Exceptions as well as multiple resultsets.
Anyway, more to follow on this thread. This wil be packaged in the next release (3.7). If you have comments let me know.
Thanks
Sujit
Release 3.7 included mock tests for some basic functionality of the test tag, such as returning multiple resultsets, exceptions and REF_CURSOR outparams.
The current CVS version has added more support for things such as updatecounts as well. The mock tests have also been expanded to include other SQLUnit tags such as batchtest and diff. These features will be available in release 3.8.
In the meantime, if you are following this thread, would appreciate it if you could look over the tests currently under test/mock/*xml in CVS and suggest other tests that may not have been covered.
Thanks
Sujit