Bug5085: clear state for testing now removes MarkTemplates,

MarkProperties and CourseTemplates from MongoDB
This commit is contained in:
Thomas Wiese committed 2019-11-12 15:26:29 +01:00
1 parent 8406cf097c
commit 02ef59b87b
1 file changed
+3
@@ -92,8 +92,11 @@ public class SharedSailingDataImpl implements ReplicatingSharedSailingData, Clea
}
private void removeAll() {
markPropertiesById.keySet().forEach(mongoObjectFactory::removeMarkProperties);
markPropertiesById.clear();
markTemplatesById.keySet().forEach(mongoObjectFactory::removeMarkTemplate);
markTemplatesById.clear();
courseTemplatesById.keySet().forEach(mongoObjectFactory::removeCourseTemplate);
courseTemplatesById.clear();
}