|
Gridarta Editor
|
Regression tests for MapsIndexer. More...
Collaboration diagram for net.sf.gridarta.model.index.MapsIndexerTest:Public Member Functions | |
| void | test1 () throws InterruptedException, IOException |
| Checks that basic indexing works as expected. More... | |
| void | test2 () throws InterruptedException, IOException |
| Checks that IndexListener#finalize() is called once after indexing has completed. More... | |
Static Public Member Functions | |
| static void | assertEquals (@NotNull final Collection< MapFile > mapPaths, @NotNull final File mapsDirectory, @NotNull final String mapPath) |
| Checks that a Collection of Files contains exactly one expected value. More... | |
Regression tests for MapsIndexer.
Definition at line 43 of file MapsIndexerTest.java.
|
static |
Checks that a Collection of Files contains exactly one expected value.
Fails the test otherwise.
| mapPaths | the collection of files |
| mapsDirectory | the maps directory |
| mapPath | the map path (relative to mapsDirectory) of the expected value |
Definition at line 139 of file MapsIndexerTest.java.
References net.sf.gridarta.model.mapmodel.MapFile.getMapPath(), net.sf.gridarta.model.mapmodel.MapFile.getMapsDir(), and net.sf.gridarta.model.mapmodel.AbsoluteMapPath.getPath().
Referenced by net.sf.gridarta.model.index.MapsIndexerTest.test1(), and net.sf.gridarta.model.index.MapsIndexerTest.test2().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.model.index.MapsIndexerTest.test1 | ( | ) | throws InterruptedException, IOException |
Checks that basic indexing works as expected.
| InterruptedException | if the test fails |
| IOException | if the test fails |
Definition at line 51 of file MapsIndexerTest.java.
References net.sf.gridarta.model.index.MapsIndexerTest.assertEquals(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.createMapsDirectory(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.deleteTempDir(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getMapManager(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getProjectSettings(), net.sf.gridarta.model.index.MapsIndexer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.start(), net.sf.gridarta.model.index.MapsIndexer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.stop(), and net.sf.gridarta.model.index.MapsIndexer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.waitForIdle().
Here is the call graph for this function:| void net.sf.gridarta.model.index.MapsIndexerTest.test2 | ( | ) | throws InterruptedException, IOException |
Checks that IndexListener#finalize() is called once after indexing has completed.
| InterruptedException | if the test fails |
| IOException | if the test fails |
Definition at line 76 of file MapsIndexerTest.java.
References net.sf.gridarta.model.index.AbstractIndex< V extends Serializable >.addIndexListener(), net.sf.gridarta.model.index.MapsIndexerTest.assertEquals(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.createMapsDirectory(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.deleteTempDir(), net.sf.gridarta.model.io.PathManager.getMapFile(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getMapManager(), 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(), net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.save(), net.sf.gridarta.model.index.MapsIndexer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.start(), and net.sf.gridarta.model.index.MapsIndexer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.waitForIdle().
Here is the call graph for this function: