From a8265bea62af3fdbc20f53be55cd5d7e9e0a640b Mon Sep 17 00:00:00 2001 From: Riegel <alexander.riegel@hft-stuttgart.de> Date: Tue, 10 Dec 2024 11:15:39 +0100 Subject: [PATCH] Test: Add testcase for implicit geometry zip-parsing --- .../java/de/hft/stuttgart/citydoctor2/zip/ZipTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/zip/ZipTest.java b/CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/zip/ZipTest.java index c3c3081..0dd4439 100644 --- a/CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/zip/ZipTest.java +++ b/CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/zip/ZipTest.java @@ -1,5 +1,6 @@ package de.hft.stuttgart.citydoctor2.zip; +import de.hft.stuttgart.citydoctor2.datastructure.CityDoctorModel; import de.hft.stuttgart.citydoctor2.parser.ParserConfiguration; import org.apache.commons.io.FileUtils; import org.junit.Rule; @@ -81,4 +82,12 @@ public class ZipTest { assertEquals(ZipEntryErrorType.INVALID_CITY_GML_FILE, cgmlArch.getEntry("valFaulty.gml").getErrorType()); } + @Test + public void testImplicitParsing(){ + CityGmlZipArchive cgmlArch = CityGmlZipArchive.fromZipFile("src/test/resources/zip/implicit.zip", config); + assertNotNull(cgmlArch); + CityDoctorModel mainModel = cgmlArch.getEntry("Main_model.gml").getModel(); + assertEquals(18, mainModel.getGenericCityObjects().size()); + } + } -- GitLab