Write tests for PlayerDataStorage

This commit is contained in:
ljacqu
2016-07-10 23:00:58 +02:00
parent 8e91636fbd
commit a6d885e0bb
3 changed files with 141 additions and 1 deletions
@@ -74,7 +74,7 @@ public class PlayerDataStorage {
String str = Files.toString(file, Charsets.UTF_8);
return gson.fromJson(str, PlayerData.class);
} catch (IOException e) {
ConsoleLogger.writeStackTrace(e);
ConsoleLogger.logException("Could not read player data on disk for '" + player.getName() + "'", e);
return null;
}
}