Allow test to run on Windows by using java.io.tmpdir

This commit is contained in:
danielshaya
2015-05-20 11:37:08 +01:00
parent aee2af0b70
commit 6445f94a71
@@ -18,7 +18,8 @@ public class FilePerKeyMapTest {
@BeforeClass
public static void createMap() throws IOException {
map = new FilePerKeyMap("/tmp/filepermaptests");
String TMP = System.getProperty("java.io.tmpdir");
map = new FilePerKeyMap(TMP + "/filepermaptests");
//just in case it hasn't been cleared up last time
map.clear();
}