Author: vsalaun Date: 2011-06-29 11:54:02 +0200 (Wed, 29 Jun 2011) New Revision: 3189 Url: http://chorem.org/repositories/revision/lima/3189 Log: bug fix: run a new database for each test instead of using the same one, to be improved Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestConfig.java Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestConfig.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestConfig.java 2011-06-28 14:54:14 UTC (rev 3188) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestConfig.java 2011-06-29 09:54:02 UTC (rev 3189) @@ -63,6 +63,8 @@ // override somes String testDir = System.getProperty("java.io.tmpdir") + File.separator + "limatestdb"; + //TODO clear database instead of creating a new one for each test + testDir += System.currentTimeMillis(); testProperties.put("lima.dir", testDir); testProperties.put("hibernate.connection.url", "jdbc:h2:file:" + testDir + File.separator + "data"); testProperties.put("hibernate.hbm2ddl.auto", "update");