Hopefully fixed the tests

This commit is contained in:
main() 2012-08-06 11:54:54 +02:00
parent 3395f3d7c7
commit 53567d4646
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ public class MockWorldFactory {
private static void registerWorld(World world) {
createdWorlds.put(world.getName(), world);
new File(TestInstanceCreator.worldsDirectory, world.getName()).mkdir();
}
private static World basics(String world, World.Environment env, WorldType type) {
@ -213,6 +214,8 @@ public class MockWorldFactory {
}
public static void clearWorlds() {
for (String name : createdWorlds.keySet())
new File(TestInstanceCreator.worldsDirectory, name).delete();
createdWorlds.clear();
}
}