|
Gridarta Editor
|
Regression tests for DefaultMapControl. More...
Collaboration diagram for net.sf.gridarta.model.mapcontrol.DefaultMapControlTest:Public Member Functions | |
| void | testSave1 () throws IOException, InterruptedException |
| Checks that MapControl#save() does not fail if the path to the map file does not yet exist. More... | |
| void | testSaveAs1 () throws IOException, InterruptedException |
| Checks that MapControl#saveAs(MapFile) does update the map's file and that it does reset the map's modified flag. More... | |
Regression tests for DefaultMapControl.
Definition at line 38 of file DefaultMapControlTest.java.
| void net.sf.gridarta.model.mapcontrol.DefaultMapControlTest.testSave1 | ( | ) | throws IOException, InterruptedException |
Checks that MapControl#save() does not fail if the path to the map file does not yet exist.
| InterruptedException | if the test fails |
| IOException | if the test fails |
Definition at line 47 of file DefaultMapControlTest.java.
References net.sf.gridarta.model.mapcontrol.TestMapControlCreator.createMapsDirectory(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.deleteTempDir(), net.sf.gridarta.model.mapmodel.MapFile.getFile(), net.sf.gridarta.model.io.PathManager.getMapFile(), net.sf.gridarta.model.settings.ProjectSettings.getMapsDirectory(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getPathManager(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getProjectSettings(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.newMapControl(), and net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.save().
Here is the call graph for this function:| void net.sf.gridarta.model.mapcontrol.DefaultMapControlTest.testSaveAs1 | ( | ) | throws IOException, InterruptedException |
Checks that MapControl#saveAs(MapFile) does update the map's file and that it does reset the map's modified flag.
| InterruptedException | if the test fails |
| IOException | if the test fails |
Definition at line 67 of file DefaultMapControlTest.java.
References net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addGameObjectToMap(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.beginTransaction(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.createMapsDirectory(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.deleteTempDir(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.endTransaction(), net.sf.gridarta.model.mapmodel.MapFile.getFile(), net.sf.gridarta.model.io.PathManager.getMapFile(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapFile(), net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getMapModelCreator(), net.sf.gridarta.model.settings.ProjectSettings.getMapsDirectory(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getPathManager(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getProjectSettings(), net.sf.gridarta.model.mapmodel.TestMapModelCreator.getTopmostInsertionMode(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.isModified(), net.sf.gridarta.model.mapmodel.TestMapModelCreator.newGameObject(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.newMapControl(), and net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.saveAs().
Here is the call graph for this function: