Gridarta Editor
net.sf.gridarta.model.index.MapsIndexerTest Class Reference

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

Detailed Description

Regression tests for MapsIndexer.

Author
Andreas Kirschbaum

Definition at line 43 of file MapsIndexerTest.java.

Member Function Documentation

◆ assertEquals()

static void net.sf.gridarta.model.index.MapsIndexerTest.assertEquals ( @NotNull final Collection< MapFile mapPaths,
@NotNull final File  mapsDirectory,
@NotNull final String  mapPath 
)
static

Checks that a Collection of Files contains exactly one expected value.

Fails the test otherwise.

Parameters
mapPathsthe collection of files
mapsDirectorythe maps directory
mapPaththe 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:

◆ test1()

◆ test2()

void net.sf.gridarta.model.index.MapsIndexerTest.test2 ( ) throws InterruptedException, IOException

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