mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-16 07:10:48 +00:00
Bug5085: clear state for testing now removes MarkTemplates,
MarkProperties and CourseTemplates from MongoDB
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user