The test project tests all aspects of the Torque main distribution and checks whether the different parts of Torque (runtime, generator, templates, maven-plugin) work together. The test project is almost a normal Torque project, with the following differences:
In order to run the test project using maven 2, use the following procedure:
The standard database profiles do not generate managers and beans,
nor do they execute the corresponding tests. For generating beans,
activate the beans profile. This will generate the bean classes
and run the corresponding test. For using manager classes, activate
the managers profile. This will generate the manager classes
and run the corresponding test.
For example, if you want to run the test against mysql and use beans and managers, run mvn -Pmysql,beans,managers clean test.
Because dependency information is pulled from the profiles,
you need to enable a profile from the profiles.xml for
generating the eclipse files. Running mvn eclipse:eclipse
without a profile will result in the following error:
org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project org.apache.torque:torque-test
The profile you choose will also pull the database driver from the profile into your eclipse project. E.G. if you want to use the mysql driver dependency in your eclipse project, run mvn -Pmysql eclipse:eclipse