Gridarta Editor
net.sf.gridarta.model.mapcontrol.DefaultMapControlTest Class Reference

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...
 

Detailed Description

Regression tests for DefaultMapControl.

Author
Andreas Kirschbaum

Definition at line 38 of file DefaultMapControlTest.java.

Member Function Documentation

◆ testSave1()

◆ testSaveAs1()

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.

Exceptions
InterruptedExceptionif the test fails
IOExceptionif 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:

The documentation for this class was generated from the following file: