mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
bug5541: trying to fix test set-up for OSGi environment
This commit is contained in:
+5
-2
@@ -749,8 +749,11 @@ public class UserStoreImpl implements UserStore {
|
||||
*/
|
||||
private void checkGroupNameAndIdUniqueness(UUID groupId, String name) throws UserGroupManagementException {
|
||||
assert userGroupsLock.isWriteLockedByCurrentThread() || userGroupsLock.getReadHoldCount() > 0;
|
||||
if (userGroupsByName.containsKey(name) || userGroups.containsKey(groupId)) {
|
||||
throw new UserGroupManagementException(UserGroupManagementException.USER_GROUP_ALREADY_EXISTS);
|
||||
if (userGroupsByName.containsKey(name)) {
|
||||
throw new UserGroupManagementException(UserGroupManagementException.USER_GROUP_ALREADY_EXISTS+": "+name);
|
||||
}
|
||||
if (userGroups.containsKey(groupId)) {
|
||||
throw new UserGroupManagementException(UserGroupManagementException.USER_GROUP_ALREADY_EXISTS+": "+groupId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user