Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
d25c9448
Commit
d25c9448
authored
Mar 31, 2023
by
Matthias Betz
Browse files
fixing junit test because of duplicate validation entry
parent
daa64408
Pipeline
#7240
failed with stage
in 1 minute and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/writer/CityGMLWriterUtils.java
View file @
d25c9448
...
...
@@ -121,7 +121,7 @@ public class CityGMLWriterUtils {
de
.
hft
.
stuttgart
.
quality
.
model
.
enums
.
ErrorId
adeId
=
QualityADEUtils
.
mapErrorIdToAdeId
(
e
.
getKey
());
if
(
adeId
==
null
)
{
// error that is not part of the ade standard
logger
.
warn
(
"Found error {} that cannot be converted to ADE error. It will not be written"
,
e
.
getKey
()
.
toString
()
);
logger
.
warn
(
"Found error {} that cannot be converted to ADE error. It will not be written"
,
e
.
getKey
());
continue
;
}
stats
.
setName
(
adeId
);
...
...
CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/datastructure/CityDoctorModelTest.java
View file @
d25c9448
...
...
@@ -159,7 +159,7 @@ public class CityDoctorModelTest {
CityModel
cModel
=
new
CityModel
();
ValidationPlan
plan
=
new
ValidationPlan
();
plan
.
setId
(
"CD_PLAN_"
+
UUID
.
randomUUID
().
toString
());
cModel
.
getFeatureMembers
().
add
(
new
AbstractFeatureProperty
(
plan
));
//
cModel.getFeatureMembers().add(new AbstractFeatureProperty(plan));
GlobalParameters
globParams
=
new
GlobalParameters
();
plan
.
setGlobalParameters
(
new
GlobalParametersProperty
(
globParams
));
plan
.
getGlobalParameters
().
getObject
().
getParameters
().
add
(
new
ParameterProperty
(
new
Parameter
()));
...
...
@@ -220,12 +220,12 @@ public class CityDoctorModelTest {
assertEquals
(
2
,
featureMembers
.
size
());
Validation
val
=
(
Validation
)
featureMembers
.
get
(
1
).
getObject
();
Validation
val
=
(
Validation
)
featureMembers
.
get
(
0
).
getObject
();
de
.
hft
.
stuttgart
.
quality
.
model
.
types
.
Error
errorStatistics
=
val
.
getStatistics
().
getObject
().
getErrors
().
get
(
0
).
getObject
();
assertEquals
(
de
.
hft
.
stuttgart
.
quality
.
model
.
enums
.
ErrorId
.
GE_P_HOLE_OUTSIDE
,
errorStatistics
.
getName
());
assertEquals
(
1
,
errorStatistics
.
getOccurrences
());
ValidationPlan
resultPlan
=
(
ValidationPlan
)
featureMembers
.
get
(
0
).
getObject
();
ValidationPlan
resultPlan
=
(
ValidationPlan
)
featureMembers
.
get
(
1
).
getObject
();
assertEquals
(
val
.
getValidationPlan
().
getHref
().
substring
(
1
),
resultPlan
.
getId
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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