On Wed, Jan 19, 2011 at 05:06:56PM -0600, Tim Donohue wrote:
In the Unit Testing, the Database is initialized by:
MockDatabaseManager.initialize()
Which in turn calls 'database_schema.sql' to initialize the database
tables, etc. The 'database_schema.sql' file is provided in
OK, I found:
mvn test -Dtest=IPMatcherTest
but I'd still like to know how the test database schema gets defined
when Maven runs the tests.
At least I learned how to test whether a table is defined, while I was
trying to make my test class work.
--
Mark H. Wood, Lead System Programmer
I'm trying to run a single test class manually:
java -cp $CP \
org.junit.runner.JUnitCore \
org.dspace.authenticate.IPMatcherTest
and it blows up when trying to load the registries, apparently because
there are no tables into which to load them. I've dug around a bit
and can't