diff --git a/src/test/java/eu/simstadt/regionchooser/RegionChooserCLITests.java b/src/test/java/eu/simstadt/regionchooser/RegionChooserCLITests.java index 81722644717bcc3dfa219cb0cc1024019e849f10..b4d3b5f2670615929f5d299e7a488df66030e9ca 100644 --- a/src/test/java/eu/simstadt/regionchooser/RegionChooserCLITests.java +++ b/src/test/java/eu/simstadt/regionchooser/RegionChooserCLITests.java @@ -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 footer is here too + //FIXME: Footer isn't here, and I don't know why... Should stdout be flushed, closed? assertFalse(Files.exists(noOutput)); }