Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
ea481c2a
Commit
ea481c2a
authored
2 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Tests are green again! :D
parent
782889f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/eu/simstadt/regionchooser/RegionExtractorTests.java
+1
-6
.../java/eu/simstadt/regionchooser/RegionExtractorTests.java
with
1 addition
and
6 deletions
+1
-6
src/test/java/eu/simstadt/regionchooser/RegionExtractorTests.java
+
1
-
6
View file @
ea481c2a
...
@@ -53,8 +53,7 @@ void testExtract3BuildingsFromGSK3Model() throws Throwable {
...
@@ -53,8 +53,7 @@ void testExtract3BuildingsFromGSK3Model() throws Throwable {
}
}
@Test
@Test
void
testExtractBuildingsWithoutCommentsInBetween
()
throws
Throwable
{
void
testExtractBuildingsWithCommentsInBetween
()
throws
Throwable
{
//NOTE: Small region around WashingtonSquare
String
wktPolygon
=
"POLYGON((300259.78663489706 62835.835907766595,300230.33294975647 62792.0482567884,300213.5667431851 62770.83143720031,300183.6592861123 62730.20347659383,300252.9947486632 62676.938468840905,300273.3862256562 62701.767105345614,300257.5250407747 62715.760413539596,300308.2754543957 62805.14198211394,300259.78663489706 62835.835907766595))"
;
String
wktPolygon
=
"POLYGON((300259.78663489706 62835.835907766595,300230.33294975647 62792.0482567884,300213.5667431851 62770.83143720031,300183.6592861123 62730.20347659383,300252.9947486632 62676.938468840905,300273.3862256562 62701.767105345614,300257.5250407747 62715.760413539596,300308.2754543957 62805.14198211394,300259.78663489706 62835.835907766595))"
;
Path
citygmlPath
=
TEST_REPOSITORY
.
resolve
(
"NewYork.proj/ManhattanSmall.gml"
);
Path
citygmlPath
=
TEST_REPOSITORY
.
resolve
(
"NewYork.proj/ManhattanSmall.gml"
);
String
archGMLString
=
RegionExtractor
.
selectRegionDirectlyFromCityGML
(
wktPolygon
,
EPSG_32118
,
citygmlPath
)
String
archGMLString
=
RegionExtractor
.
selectRegionDirectlyFromCityGML
(
wktPolygon
,
EPSG_32118
,
citygmlPath
)
...
@@ -65,10 +64,6 @@ void testExtractBuildingsWithoutCommentsInBetween() throws Throwable {
...
@@ -65,10 +64,6 @@ void testExtractBuildingsWithoutCommentsInBetween() throws Throwable {
assertTrue
(
archGMLString
.
contains
(
"uuid_0985cebb-922d-4b3e-95e5-15dc6089cd28"
));
assertTrue
(
archGMLString
.
contains
(
"uuid_0985cebb-922d-4b3e-95e5-15dc6089cd28"
));
assertTrue
(
archGMLString
.
contains
(
CITY_MODEL_HEADER
));
assertTrue
(
archGMLString
.
contains
(
CITY_MODEL_HEADER
));
assertTrue
(
archGMLString
.
contains
(
CITY_MODEL_FOOTER
));
assertTrue
(
archGMLString
.
contains
(
CITY_MODEL_FOOTER
));
assertFalse
(
archGMLString
.
contains
(
"comment between buildings"
),
"Comments between buildings shouldn't be extracted"
);
assertFalse
(
archGMLString
.
contains
(
"comment after last building"
),
"Comments after buildings shouldn't be extracted"
);
}
}
@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