/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package com.volumetricpixels.questy.test;

import org.junit.Assert;
import org.junit.Test;

import com.volumetricpixels.questy.Quest;
import com.volumetricpixels.questy.QuestInstance;
import com.volumetricpixels.questy.QuestManager;
import com.volumetricpixels.questy.storage.impl.SimpleProgressStore;

import java.io.File;

public class SimpleProgressStoreTest {
    @Test
    public void runTest() {
        File rootDir = new File(".");
        QuestManager qm = new QuestManager(new SimpleProgressStore(rootDir));
        File testDir = new File(rootDir, "test");
        boolean existed = rootDir.exists();
        if (!existed) testDir.mkdirs();

        Quest t = TEST.obtainTestQuest(qm);
        qm.addQuest(t);
        qm.startQuest(t.createInstance("bob"));

        qm.storeProgression();
        qm.loadProgression();

        QuestInstance i = qm.getQuestInstance(t, "bob");
        Assert.assertNotNull(i);
        Assert.assertNotNull(i.getCurrentObjective());

        if (!existed) testDir.delete();
    }
}

@@ -827,32 +827,46 @@
    if (!existed)
+ %7B%0A           
  testDir.mkdirs(
@@ -867,16 +867,26 @@
 kdirs();
+%0A        %7D
 %0A%0A      
@@ -1026,16 +1026,106 @@
 ssion();
+%0A%0A        qm = new QuestManager(new SimpleProgressStore(rootDir));%0A        qm.addQuest(t);
 %0A       
@@ -1315,16 +1315,30 @@
 existed)
+ %7B%0A           
  testDir
@@ -1344,20 +1344,30 @@
 r.delete();%0A
+        %7D%0A
     %7D%0A%7D%0A

Make SimpleProgressStoreTest into a more accurate representation of how it would work