Re: [Dspace-devel] In unit tests, how does the database get instantiated?

2011-01-20 Thread Mark H. Wood
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

Re: [Dspace-devel] In unit tests, how does the database get instantiated?

2011-01-14 Thread Mark H. Wood
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

[Dspace-devel] In unit tests, how does the database get instantiated?

2011-01-11 Thread Mark H. Wood
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