Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
cfe468ea
Commit
cfe468ea
authored
Nov 28, 2023
by
Eric Duminil
Browse files
Added tests.
parent
a34fa4c4
Pipeline
#8925
passed with stage
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/eu/simstadt/regionchooser/RegionExtractorTests.java
View file @
cfe468ea
...
@@ -179,6 +179,15 @@ void testExtractBuildingsAndTrees() throws Throwable {
...
@@ -179,6 +179,15 @@ void testExtractBuildingsAndTrees() throws Throwable {
assertEquals
(
4
,
countRegexMatches
(
gmlWithSomeBuildingAndTrees
,
"<bldg:Building gml:id"
));
assertEquals
(
4
,
countRegexMatches
(
gmlWithSomeBuildingAndTrees
,
"<bldg:Building gml:id"
));
assertEquals
(
1
,
countRegexMatches
(
gmlWithSomeBuildingAndTrees
,
"<veg:PlantCover gml:id"
));
assertEquals
(
1
,
countRegexMatches
(
gmlWithSomeBuildingAndTrees
,
"<veg:PlantCover gml:id"
));
assertEquals
(
3
,
countRegexMatches
(
gmlWithSomeBuildingAndTrees
,
"<veg:SolitaryVegetationObject 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
@Test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment