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
8aa306c7
Commit
8aa306c7
authored
Dec 16, 2025
by
Luna Riegel
Browse files
Test: Update Healer test cases
parent
8b2f8ba8
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorHealer/src/test/java/de/hft/stuttgart/citydoctor2/healing/TestHealer.java
View file @
8aa306c7
...
@@ -150,15 +150,14 @@ public class TestHealer {
...
@@ -150,15 +150,14 @@ public class TestHealer {
Checker
c
=
new
Checker
(
config
,
model
);
Checker
c
=
new
Checker
(
config
,
model
);
c
.
runChecks
();
c
.
runChecks
();
Building
b
=
model
.
getBuildings
().
toList
().
get
(
0
);
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
)
.
getGeometries
().
get
(
0
);
Geometry
geom
=
b
.
getGeometries
().
get
(
0
);
Healer
healer
=
new
Healer
(
c
);
Healer
healer
=
new
Healer
(
c
);
healer
.
setNumberOfIterations
(
33
);
healer
.
healCityObject
(
b
);
healer
.
healCityObject
(
model
.
getBuildings
().
toList
().
get
(
0
));
c
.
runChecks
();
c
.
runChecks
();
assertFalse
(
geom
.
containsAnyError
());
assertFalse
(
geom
.
containsAnyError
());
}
}
@Test
@Test
...
@@ -193,7 +192,6 @@ public class TestHealer {
...
@@ -193,7 +192,6 @@ public class TestHealer {
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
).
getGeometries
().
get
(
0
);
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
).
getGeometries
().
get
(
0
);
Healer
healer
=
new
Healer
(
c
);
Healer
healer
=
new
Healer
(
c
);
healer
.
setNumberOfIterations
(
83
);
healer
.
healCityObject
(
model
.
getBuildings
().
toList
().
get
(
0
));
healer
.
healCityObject
(
model
.
getBuildings
().
toList
().
get
(
0
));
c
.
runChecks
();
c
.
runChecks
();
...
@@ -213,7 +211,6 @@ public class TestHealer {
...
@@ -213,7 +211,6 @@ public class TestHealer {
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
).
getGeometries
().
get
(
0
);
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
).
getGeometries
().
get
(
0
);
Healer
healer
=
new
Healer
(
c
);
Healer
healer
=
new
Healer
(
c
);
healer
.
setNumberOfIterations
(
165
);
healer
.
healCityObject
(
model
.
getBuildings
().
toList
().
get
(
0
));
healer
.
healCityObject
(
model
.
getBuildings
().
toList
().
get
(
0
));
c
.
runChecks
();
c
.
runChecks
();
...
@@ -264,7 +261,6 @@ public class TestHealer {
...
@@ -264,7 +261,6 @@ public class TestHealer {
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
).
getGeometries
().
get
(
0
);
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
).
getGeometries
().
get
(
0
);
Healer
healer
=
new
Healer
(
c
);
Healer
healer
=
new
Healer
(
c
);
healer
.
setNumberOfIterations
(
45
);
healer
.
healCityObject
(
model
.
getBuildings
().
toList
().
get
(
0
));
healer
.
healCityObject
(
model
.
getBuildings
().
toList
().
get
(
0
));
c
.
runChecks
();
c
.
runChecks
();
...
@@ -282,7 +278,6 @@ public class TestHealer {
...
@@ -282,7 +278,6 @@ public class TestHealer {
Healer
healer
=
new
Healer
(
c
);
Healer
healer
=
new
Healer
(
c
);
healer
.
setNumberOfIterations
(
45
);
healer
.
healModel
(
model
);
healer
.
healModel
(
model
);
}
}
...
@@ -299,7 +294,7 @@ public class TestHealer {
...
@@ -299,7 +294,7 @@ public class TestHealer {
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
).
getGeometries
().
get
(
0
);
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
).
getGeometries
().
get
(
0
);
Healer
healer
=
new
Healer
(
c
);
Healer
healer
=
new
Healer
(
c
);
healer
.
setNumberOfIterations
(
100
);
healer
.
healCityObject
(
model
.
getBuildings
().
toList
().
get
(
0
));
healer
.
healCityObject
(
model
.
getBuildings
().
toList
().
get
(
0
));
c
.
runChecks
();
c
.
runChecks
();
...
...
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