public class AGMapServerTest extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static double |
doubleThreshhold |
private static boolean |
initialized |
(package private) static List<TestParams> |
params |
Constructor and Description |
---|
AGMapServerTest() |
Modifier and Type | Method and Description |
---|---|
private void |
checkParamsMap(String err,
Map<String,Object> m1,
Map<String,Object> m2) |
void |
setUp()
Initializes the student MapServer statically.
|
void |
testFindAndSetRoute()
Test the routefinding functionality by comparing the node id list item by item.
|
void |
testGetLocations()
Test location search by full search string, comparing the output lists against each other
element by element; note that we assume the most reasonable construction of each of these
lists, that is, that they are in order of the locations as they appear in the OSM file.
|
void |
testGetLocationsByPrefix()
Test Autocomplete for each prefix, comparing the sets of outputs against each other.
|
void |
testGetMapRaster()
Test the rastering functionality of the student code, by writing the ByteArrayOutputStream
to a byte[] array and comparing it with the staff result byte-wise.
|
void |
testGetMapRasterParams()
Check the student raster output parameters against the staff output parameters.
|
void |
testRouteRaster()
Test the route raster the same way the map raster is tested, except with the route pre-set
before making the call to raster.
|
static List<TestParams> params
private static boolean initialized
static final double doubleThreshhold
public void setUp() throws Exception
List
of TestParams.Exception
private void checkParamsMap(String err, Map<String,Object> m1, Map<String,Object> m2)
public void testGetMapRaster() throws Exception
Exception
public void testGetMapRasterParams() throws Exception
Exception
public void testFindAndSetRoute() throws Exception
Exception
public void testRouteRaster() throws Exception
Exception
public void testGetLocationsByPrefix() throws Exception
Exception
public void testGetLocations() throws Exception
Exception