From e184abafc458578e6ee05dec0617bd893fe62c17 Mon Sep 17 00:00:00 2001 From: Eric Duminil <eric.duminil@gmail.com> Date: Tue, 11 Oct 2022 18:23:08 +0200 Subject: [PATCH] Fixme --- .../eu/simstadt/regionchooser/RegionChooserCLITests.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/test/java/eu/simstadt/regionchooser/RegionChooserCLITests.java b/src/test/java/eu/simstadt/regionchooser/RegionChooserCLITests.java index 8172264..b4d3b5f 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)); } -- GitLab