Yuck.

Haven't you heard of dbunit?

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]

Reply via email to