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

Fixme

parent f6e9507e
...@@ -67,8 +67,11 @@ void testExtractRegionFromTwoCitygmls() throws IOException { ...@@ -67,8 +67,11 @@ void testExtractRegionFromTwoCitygmls() throws IOException {
wkt.write(wktPolygon); wkt.write(wktPolygon);
} }
assertFalse(Files.exists(outGML)); assertFalse(Files.exists(outGML));
new CommandLine(new RegionChooserCLI()).execute("--input=" + citygml1 + "," + citygml2, // originalOut.println("--input=" + citygml1 + "," + citygml2 + " " +
"--output=" + outGML, "--wkt=" + inWKT, "--epsg=31463", "--local"); // "--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.exists(outGML));
assertTrue(Files.size(outGML) > 600_000); assertTrue(Files.size(outGML) > 600_000);
assertEquals(20, countBuildings(outGML)); assertEquals(20, countBuildings(outGML));
...@@ -123,7 +126,7 @@ void testExtractRegionWithStandardInputAndStandardOutput() throws IOException { ...@@ -123,7 +126,7 @@ void testExtractRegionWithStandardInputAndStandardOutput() throws IOException {
assertTrue(err.toString().contains(expectedLog), err.toString() + " should contain " + expectedLog); assertTrue(err.toString().contains(expectedLog), err.toString() + " should contain " + expectedLog);
String expectedBuilding = "uuid_0547df65-ae80-459e-bb15-c839c1a2e566"; String expectedBuilding = "uuid_0547df65-ae80-459e-bb15-c839c1a2e566";
assertTrue(out.toString().contains(expectedBuilding), out.toString() + " should contain " + expectedBuilding); assertTrue(out.toString().contains(expectedBuilding), out.toString() + " should contain " + expectedBuilding);
//TODO: Check if footer is here too //FIXME: Footer isn't here, and I don't know why... Should stdout be flushed, closed?
assertFalse(Files.exists(noOutput)); assertFalse(Files.exists(noOutput));
} }
......
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