Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
1 year ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Added tests.
parent
a34fa4c4
Pipeline
#8925
passed with stage
in 36 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/eu/simstadt/regionchooser/RegionExtractorTests.java
+9
-0
.../java/eu/simstadt/regionchooser/RegionExtractorTests.java
with
9 additions
and
0 deletions
+9
-0
src/test/java/eu/simstadt/regionchooser/RegionExtractorTests.java
+
9
-
0
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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets