/** * Test if a JSON file containing a Point geometry can be indexed * @param context the current test context * @throws IOException if the JSON file could not be read */ @Test public void point(TestContext context) throws IOException { List<List<Double>> expected = Arrays.asList( Arrays.asList(8.6599, 49.87424), Arrays.asList(8.6599, 49.87424) ); assertIndexed(expected, "point.json", context); }
/** * Test if a JSON file containing a LineString geometry can be indexed * @param context the current test context * @throws IOException if the JSON file could not be read */ @Test public void lineString(TestContext context) throws IOException { List<List<Double>> expected = Arrays.asList( Arrays.asList(8.0, 49.5), Arrays.asList(8.5, 49.0) ); assertIndexed(expected, "linestring.json", context); }
/** * Test if a JSON file containing a Feature with a LineString geometry * can be indexed * @param context the current test context * @throws IOException if the JSON file could not be read */ @Test public void feature(TestContext context) throws IOException { List<List<Double>> expected = Arrays.asList( Arrays.asList(8.0, 49.5), Arrays.asList(8.5, 49.0) ); assertIndexed(expected, "feature.json", context); } }