[gatein-dev] Unit test on databases

Julien Viet julien at julienviet.com
Sat Feb 27 16:55:56 EST 2010


I have resolved GTNPORTAL-696 : "Failure in GateIn unit tests on  
different DB than hsqldb", here is the status.

The component tests have now an externalized JCR database  
configuration, that is defined in a maven profile in the portal parent  
pom, there are a few limitations:

- mysql5 profile has been added, the URL points to the virtualbox  
running mysql configured on my machine with IP 10.37.129.4 . I think  
it should be possible to make it more configurable of course. I'll let  
the community contribute it :-)
- modules using IDM are using a separate hsqldb database
- it is not really possible to run the tests from an aggregator pom as  
the database needs to be manually cleaned up (was automatic with  
hsqldb as it's in target directory)

So it should be possible for Prabhat to run unit test of gatein on  
different databases.



More information about the gatein-dev mailing list