Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
QualityADE
Commits
895a8801
Commit
895a8801
authored
2 years ago
by
Matthias Betz
Browse files
Options
Download
Email Patches
Plain Diff
added degenerated ring test
parent
3188e3b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
citygml4j-quality-ade/src/test/java/de/hft/stuttgart/quality/QualityAdeTests.java
+16
-0
...c/test/java/de/hft/stuttgart/quality/QualityAdeTests.java
with
16 additions
and
0 deletions
+16
-0
citygml4j-quality-ade/src/test/java/de/hft/stuttgart/quality/QualityAdeTests.java
+
16
-
0
View file @
895a8801
...
...
@@ -378,6 +378,22 @@ class QualityAdeTests {
byte
[]
buf
=
writeModel
(
model
);
assertTrue
(
validate
(
new
ByteArrayInputStream
(
buf
)));
}
@Test
void
testRingSelfIntersectionErrorDegenerateRing
()
throws
ADEException
,
CityGMLContextException
,
CityGMLWriteException
,
SAXException
,
IOException
,
SchemaHandlerException
{
CityModel
model
=
new
CityModel
();
ValidationResult
res
=
fillCityModel
(
model
);
RingSelfIntersectionError
err
=
new
RingSelfIntersectionError
();
err
.
setLinearRingId
(
"ringId"
);
err
.
setType
(
RingSelfIntType
.
DEGENERATED_RING
);
err
.
setVertex1
(
new
DirectPosition
(
1
,
2
,
3
));
res
.
getErrors
().
add
(
new
AbstractErrorProperty
(
err
));
byte
[]
buf
=
writeModel
(
model
);
assertTrue
(
validate
(
new
ByteArrayInputStream
(
buf
)));
}
@Test
void
testRingTooFewPointsError
()
throws
ADEException
,
CityGMLContextException
,
CityGMLWriteException
,
SAXException
,
...
...
This diff is collapsed.
Click to expand it.
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