Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
a8265bea
Commit
a8265bea
authored
Dec 10, 2024
by
Riegel
Browse files
Test: Add testcase for implicit geometry zip-parsing
parent
8efa30ba
Changes
1
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/zip/ZipTest.java
View file @
a8265bea
package
de.hft.stuttgart.citydoctor2.zip
;
package
de.hft.stuttgart.citydoctor2.zip
;
import
de.hft.stuttgart.citydoctor2.datastructure.CityDoctorModel
;
import
de.hft.stuttgart.citydoctor2.parser.ParserConfiguration
;
import
de.hft.stuttgart.citydoctor2.parser.ParserConfiguration
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.junit.Rule
;
import
org.junit.Rule
;
...
@@ -81,4 +82,12 @@ public class ZipTest {
...
@@ -81,4 +82,12 @@ public class ZipTest {
assertEquals
(
ZipEntryErrorType
.
INVALID_CITY_GML_FILE
,
cgmlArch
.
getEntry
(
"valFaulty.gml"
).
getErrorType
());
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
());
}
}
}
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