Menu

Mock Testing framework for SQLUnit

Sujit Pal
2004-06-10
2004-06-23
  • Sujit Pal

    Sujit Pal - 2004-06-10

    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

     
    • Sujit Pal

      Sujit Pal - 2004-06-23

      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

       

Log in to post a comment.