|
@@ -1,5 +1,47 @@
|
|
|
package tests;
|
|
|
|
|
|
+import java.io.File;
|
|
|
+
|
|
|
+import org.junit.Before;
|
|
|
+
|
|
|
+import ui.controller.CanvasController;
|
|
|
+import ui.controller.CategoryController;
|
|
|
+import ui.controller.LoadController;
|
|
|
+import ui.controller.MultiPurposeController;
|
|
|
+import ui.controller.ObjectController;
|
|
|
+import ui.controller.StoreController;
|
|
|
+import ui.model.Model;
|
|
|
+import ui.model.idCounter;
|
|
|
+
|
|
|
public class praktikumHolonsTestAutoSaveController {
|
|
|
+ protected praktikumHolonsAdapter adapter;
|
|
|
+ protected Model model;
|
|
|
+ protected MultiPurposeController mp;
|
|
|
+ protected CategoryController cg;
|
|
|
+ protected CanvasController cvs;
|
|
|
+ protected ObjectController obj;
|
|
|
+ protected StoreController storeController;
|
|
|
+ protected LoadController loadController;
|
|
|
+ protected idCounter id;
|
|
|
+ protected String path = System.getProperty("user.home") + "/HolonGUI/Test/";
|
|
|
|
|
|
+ @Before
|
|
|
+ public void setUp() {
|
|
|
+ adapter = new praktikumHolonsAdapter();
|
|
|
+ model = new Model();
|
|
|
+ mp = new MultiPurposeController(model);
|
|
|
+ cg = new CategoryController(model, mp);
|
|
|
+ cvs = new CanvasController(model, mp);
|
|
|
+ obj = new ObjectController(model, mp);
|
|
|
+ storeController = new StoreController(model);
|
|
|
+ loadController = new LoadController(model, cg, cvs, obj, mp);
|
|
|
+ // cg.initCategories();
|
|
|
+ // obj.initHolonElements();
|
|
|
+ File file = new File(path);
|
|
|
+ file.mkdirs();
|
|
|
+ }
|
|
|
+
|
|
|
+ public void autoSaveMinimal(){
|
|
|
+
|
|
|
+ }
|
|
|
}
|