package sophena;

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

import sophena.rcp.AppConfig;

public class AppConfigTest {

	@Before
	public void setUp() {
		AppConfig config = AppConfig.load();
		config.dataDir = System.getProperty("user.dir") + "/data";
		config.save();
	}

	@Test
	public void testAppDir() {
		AppConfig config = AppConfig.load();
		Assert.assertEquals(System.getProperty("user.dir") + "/data",
				config.dataDir);
	}

}

@@ -11,16 +11,40 @@
 phena;%0A%0A
+import org.junit.After;%0A
 import o
@@ -323,16 +323,76 @@
 ();%0A%09%7D%0A%0A
+%09@After%0A%09public void tearDown() %7B%0A%09%09AppConfig.delete();%0A%09%7D%0A%0A
 %09@Test%0A%09

delete app-config after test