Author: bpoussin Date: 2010-10-13 16:04:01 +0200 (Wed, 13 Oct 2010) New Revision: 401 Url: http://nuiton.org/repositories/revision/wikitty/401 Log: hack pour permettre aux tests de passer avec le changement de tmp dir Modified: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/memory/InMemoryStorageTest.java Modified: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/memory/InMemoryStorageTest.java =================================================================== --- trunk/wikitty-api/src/test/java/org/nuiton/wikitty/memory/InMemoryStorageTest.java 2010-10-13 14:03:30 UTC (rev 400) +++ trunk/wikitty-api/src/test/java/org/nuiton/wikitty/memory/InMemoryStorageTest.java 2010-10-13 14:04:01 UTC (rev 401) @@ -34,6 +34,12 @@ @Test public void testFilePersistance() throws Exception { + // TODO poussin 20101113 hack to create tmp dir, this is necessary + // actually because new mavenpom move tmp dir to target without create it :( + File tmp = new File(System.getProperty("java.io.tmpdir")); + tmp.mkdirs(); + // end of hack + File tempPersistFile = File.createTempFile(InMemoryStorageTest.class.getName(), ".tmp"); tempPersistFile.delete(); tempPersistFile.deleteOnExit();