You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Durham <da...@scott.af.mil> on 2004/09/10 23:05:32 UTC
Using Hsqldb for unit tests
I have a couple of questions.
First off, I'm trying to use hsqldb for rapid development/prototyping.
I'm thinking I can do the following in a series of ant tasks:
1. Connect to Hsqldb using the "mem" subprotocol simply by having the
hsqldb jar in a classpath.
2. Use XDoclet, and Torque to create tables -- I have this basically
setup.
3. Run unit tests with classes that use these tables.
Here are my questions:
1. Can I connect to hsqldb:mem:
* using username: sa and password: <empty>
* in seperate ant targets (as in, create-db, and tests.run.*)
* and expect to have access from a tests.run.* target to the tables
created in a create-db target.
So far, my work indicates that it's not the case. I have it setup to
create tables, but when unit tests run, they through various SQL errors
from "can't find table", to "no such username: sa"
Does anyone who can give me some help have a setup like this working? I
figured this was a common usage of hsqldb, is it not?
Thanks,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org