Mark, Not sure if you are still looking for an answer to this or not.
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 /src/test/resources/. This initialize() method is called the first time 'MockDatabaseManager.getConnection()' is called. Which in turn is called whenever a SQL statement is run against the database. At least, that's what I've been able to figure out, so far :) I hope that helps. -Tim On 1/14/2011 10:45 AM, Mark H. Wood wrote: > 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. > > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > > > > _______________________________________________ > Dspace-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-devel ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Dspace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-devel
