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
04e0792e
Commit
04e0792e
authored
Dec 20, 2024
by
Riegel
Browse files
Test: Improve zip-file validation testcase
parent
76ba59f9
Pipeline
#10592
passed with stage
in 7 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/check/CheckerTest.java
View file @
04e0792e
...
...
@@ -29,7 +29,6 @@ import de.hft.stuttgart.citydoctor2.parser.InvalidGmlFileException;
import
de.hft.stuttgart.citydoctor2.parser.ParserConfiguration
;
import
de.hft.stuttgart.citydoctor2.zip.CityGmlZipArchive
;
import
de.hft.stuttgart.citydoctor2.zip.CityGmlZipEntry
;
import
org.apache.commons.io.FileUtils
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.TemporaryFolder
;
...
...
@@ -144,13 +143,15 @@ public class CheckerTest {
assertTrue
(
zipFile
.
exists
());
assertTrue
(
pdfDir
.
exists
());
assertTrue
(
xmlDir
.
exists
());
assertTrue
(
pdfDir
.
isDirectory
());
assertTrue
(
xmlDir
.
isDirectory
());
assertEquals
(
5
,
pdfDir
.
listFiles
().
length
);
assertEquals
(
5
,
xmlDir
.
listFiles
().
length
);
CityGmlZipArchive
cgmlArch
=
CityGmlZipArchive
.
register
(
output
+
".zip"
);
assertNotNull
(
cgmlArch
);
cgmlArch
.
mountArchive
(
new
ParserConfiguration
(
8
,
fals
e
));
cgmlArch
.
mountArchive
(
new
ParserConfiguration
(
8
,
tru
e
));
assertEquals
(
5
,
cgmlArch
.
getEntries
().
size
());
for
(
CityGmlZipEntry
entry
:
cgmlArch
.
getEntries
())
{
assertNotNull
(
entry
);
...
...
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