Commit cfe468ea authored by Eric Duminil's avatar Eric Duminil
Browse files

Added tests.

parent a34fa4c4
Pipeline #8925 passed with stage
in 36 seconds
......@@ -179,6 +179,15 @@ void testExtractBuildingsAndTrees() throws Throwable {
assertEquals(4, countRegexMatches(gmlWithSomeBuildingAndTrees, "<bldg:Building gml:id"));
assertEquals(1, countRegexMatches(gmlWithSomeBuildingAndTrees, "<veg:PlantCover gml:id"));
assertEquals(3, countRegexMatches(gmlWithSomeBuildingAndTrees, "<veg:SolitaryVegetationObject gml:id"));
assertFalse(gmlWithSomeBuildingAndTrees.contains("DEBY_LOD2_605230"),
"Building in another corner should not be included");
assertFalse(gmlWithSomeBuildingAndTrees.contains("e15722a4-42dd"),
"Building in another corner should not be included");
assertTrue(gmlWithSomeBuildingAndTrees.contains("9801a0c9-d792-4b64-9ea1-76d829cc42ea"),
"Tree in corner should be included");
assertTrue(gmlWithSomeBuildingAndTrees.contains("DEBY_LOD2_605227"), "Building in corner should be included");
}
@Test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment