With DbUnit, you wouldn't need to be creating and dropping the
database all the time, you'd set it up once and each test could
add/remove it's own data as necessary.

On Sun, 8 Aug 2004 22:18:51 -0400, Brett Porter <[EMAIL PROTECTED]> wrote:
> About the same, but you'd need some external config. DBUnit is useful
> when you need to prepopulate a database with specific table data. I
> doubt it is very practical if you are using Hibernate to actually
> create the database.
> 
> I use DBUnit at work where the database schema is already defined.
> 
> - Brett
> 
> On Sun, 8 Aug 2004 21:04:59 -0400, Trygve Laugstøl <[EMAIL PROTECTED]> wrote:
> > On Mon, Aug 09, 2004 at 10:58:18AM +1000, Dion Gillard wrote:
> > > Yuck.
> > >
> > > Haven't you heard of dbunit?
> > 
> > How would that look?
> >
> > --
> > Trygve
> 
> 
> >
> >
> >
> > >
> > > On Thu, 5 Aug 2004 11:51:05 -0400, Trygve Laugstøl <[EMAIL PROTECTED]> wrote:
> > > > I always create and drop the database from the setUp() method of my unit
> > > > tests.
> > > >
> > > > A typical setUp() method looks like:
> > > >  
> > > > http://cvs.continuum.codehaus.org/continuum/continuum-hibernate-store/src/test/java/org/codehaus/continuum/store/hibernate/HibernateContinuumStoreTest.java?rev=1.5&view=auto
> > > >
> > > > This method makes it much easier to run the tests from anything, including
> > > > your IDE. It also makes yours test independent of maven.
> > > >
> > > > --
> > > > Trygve
> > > >
> > > >
> > > >
> > > > On Thu, Aug 05, 2004 at 10:19:22AM -0500, Eric Hauser wrote:
> > > > > I running some unit tests with Maven during my build process using
> > > > > Hypersonic in-memory mode as the datasource.  I generating the schema
> > > > > from Hibernate and then loading the schema in a preGoal for test:test
> > > > > using the ant:sql tags.  The problem that I am having is every time the
> > > > > unit test runs, Hypersonic cannot seem to find the tables that I just
> > > > > loaded.  Anyone have an example code that does something similar? Thanks.
> > > > >
> > > > > --
> > > > > Eric W. Hauser
> > > > > Application Developer
> > > > > accessIndiana..."linking hoosiers to government"
> > > > > http://www.IN.gov
> > > > > 10 W. Market St., Suite 600
> > > > > Indianapolis, IN 46204
> > > > > Phone: (317) 233-4007
> > > > > Fax: (317) 233-2011
> > > > >
> > > > > **********************************************************************
> > > > > CONFIDENTIALITY NOTICE:
> > > > > This E-mail and any attachments are confidential.  If you are not the
> > > > > intended recipient, you do not have permission to disclose, copy,
> > > > > distribute, or open any attachments.  If you have received this E-mail
> > > > > in error, please notify us immediately by returning it to the sender and
> > > > > delete this copy from your system. Thank you.
> > > > > accessIndiana, MyLocal.IN.gov, CivicNet
> > > > > **********************************************************************
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > http://www.multitask.com.au/people/dion/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to