Re: testing on alternate database

From: Mike Kienenberger (mkienen..laska.net)
Date: Mon Aug 02 2004 - 10:29:57 EDT

  • Next message: Mike Kienenberger: "Re: Oh, yeah..."

    Todd O'Bryan <toddobrya..ac.com> wrote:
    > What's the easiest way to use Cayenne to set up a testing database?
    >
    > Obviously, I'd like to be able to test on a database that doesn't
    > actually have good stuff in it, and ideally I'd love to be able to just
    > click a button and have the database be created, populated, tested, and
    > then destroyed. I know you can set up a database by loading the SQL
    > file Cayenne creates, but is there a way to set up the database under
    > Java control that could happen programmatically?

    I use dbunit to do all of this -- it's designed for these kinds of tasks.

    http://www.dbunit.org

    If you don't want to go that route, take a look at the cayenne unit tests,
    but you're going to be duplicating an existing package when all is said and
    done.

    -Mike



    This archive was generated by hypermail 2.0.0 : Mon Aug 02 2004 - 10:29:26 EDT