mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
Bug 4104: Drop PREFERENCES-collection when resetting environment for next unit test.
This commit is contained in:
+2
@@ -116,6 +116,8 @@ public class TaggingServiceTest {
|
||||
@Before
|
||||
public void resetEnvironment() {
|
||||
MongoDBService.INSTANCE.getDB().getCollection(CollectionNames.RACE_LOGS.name()).drop();
|
||||
// TODO: Receive name for preferences collection programatically
|
||||
MongoDBService.INSTANCE.getDB().getCollection("PREFERENCES").drop();
|
||||
securityService.addPermissionForUser(username, editLeaderboardPermission);
|
||||
securityService.unsetPreference(username,
|
||||
serializer.generateUniqueKey(leaderboardName, raceColumnName, fleetName));
|
||||
|
||||
Reference in New Issue
Block a user