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
e184abaf
Commit
e184abaf
authored
Oct 11, 2022
by
Eric Duminil
Browse files
Fixme
parent
f6e9507e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/eu/simstadt/regionchooser/RegionChooserCLITests.java
View file @
e184abaf
...
...
@@ -67,8 +67,11 @@ void testExtractRegionFromTwoCitygmls() throws IOException {
wkt
.
write
(
wktPolygon
);
}
assertFalse
(
Files
.
exists
(
outGML
));
new
CommandLine
(
new
RegionChooserCLI
()).
execute
(
"--input="
+
citygml1
+
","
+
citygml2
,
"--output="
+
outGML
,
"--wkt="
+
inWKT
,
"--epsg=31463"
,
"--local"
);
// originalOut.println("--input=" + citygml1 + "," + citygml2 + " " +
// "--output=" + outGML + " " + "--wkt=" + inWKT + " " + "--epsg=31463" + " " + "--local");
new
CommandLine
(
new
RegionChooserCLI
()).
execute
(
"--input="
+
citygml1
+
","
+
citygml2
,
"--output="
+
outGML
,
"--wkt="
+
inWKT
,
"--epsg=31463"
,
"--local"
);
assertTrue
(
Files
.
exists
(
outGML
));
assertTrue
(
Files
.
size
(
outGML
)
>
600_000
);
assertEquals
(
20
,
countBuildings
(
outGML
));
...
...
@@ -123,7 +126,7 @@ void testExtractRegionWithStandardInputAndStandardOutput() throws IOException {
assertTrue
(
err
.
toString
().
contains
(
expectedLog
),
err
.
toString
()
+
" should contain "
+
expectedLog
);
String
expectedBuilding
=
"uuid_0547df65-ae80-459e-bb15-c839c1a2e566"
;
assertTrue
(
out
.
toString
().
contains
(
expectedBuilding
),
out
.
toString
()
+
" should contain "
+
expectedBuilding
);
//
TODO: Check if f
ooter is here
too
//
FIXME: F
ooter is
n't
here
, and I don't know why... Should stdout be flushed, closed?
assertFalse
(
Files
.
exists
(
noOutput
));
}
...
...
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