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
5d718df1
Commit
5d718df1
authored
May 05, 2025
by
Riegel
Browse files
Test: Cleanup test case
parent
d58e0286
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/datastructure/AbstractBuildingTest.java
View file @
5d718df1
...
...
@@ -138,18 +138,12 @@ public class AbstractBuildingTest {
@Test
public
void
testClearAllContainedCheckResults
()
{
Installation
biMock
=
mock
(
Installation
.
class
);
BoundarySurface
bsMock
=
mock
(
BoundarySurface
.
class
);
AbstractBuilding
ab
=
createAbstractBuilding
();
assertTrue
(
ab
.
getAllCheckResults
().
isEmpty
());
ab
.
addCheckResult
(
new
CheckResult
(
CheckId
.
C_GE_P_HOLE_OUTSIDE
,
ResultStatus
.
OK
,
null
));
ab
.
addBoundarySurface
(
bsMock
);
ab
.
addBuildingInstallation
(
biMock
);
assertEquals
(
1
,
ab
.
getAllCheckResults
().
size
());
ab
.
clearAllContainedCheckResults
();
Mockito
.
verify
(
biMock
).
accept
(
any
(
ClearCheckResultsVisitor
.
class
));
Mockito
.
verify
(
bsMock
).
accept
(
any
(
ClearCheckResultsVisitor
.
class
));
assertTrue
(
ab
.
getAllCheckResults
().
isEmpty
());
}
...
...
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