Commit 5d718df1 authored by Riegel's avatar Riegel
Browse files

Test: Cleanup test case

parent d58e0286
......@@ -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());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment