Updated CompositeUserGroupProviderTestBase with LinkedHashMap
Replaced HashMap with LinkedHashMap to avoid potential non-deterministic results for user group properties
This closes
@@ -21,7 +21,7 @@ import org.apache.nifi.components.PropertyValue;
import org.apache.nifi.parameter.ParameterLookup;
import org.junit.Assert;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;
@@ -179,7 +179,7 @@ public class CompositeUserGroupProviderTestBase {
protected void mockProperties(final AuthorizerConfigurationContext configurationContext) {
when(configurationContext.getProperties()).then((invocation) -> {
- final Map<String, String> properties = new HashMap<>();
+ final Map<String, String> properties = new LinkedHashMap<>();
int i = 1;
while (true) {
