aboutsummaryrefslogtreecommitdiffstats
path: root/context/context-test-utils
diff options
context:
space:
mode:
Diffstat (limited to 'context/context-test-utils')
-rw-r--r--context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/concepts/TestContextTreeSetItem.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/concepts/TestContextTreeSetItem.java b/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/concepts/TestContextTreeSetItem.java
index e38d9c640..22056db34 100644
--- a/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/concepts/TestContextTreeSetItem.java
+++ b/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/concepts/TestContextTreeSetItem.java
@@ -21,6 +21,7 @@
package org.onap.policy.apex.context.test.concepts;
import java.io.Serializable;
+import java.util.Arrays;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
@@ -45,7 +46,9 @@ public class TestContextTreeSetItem implements Serializable {
*
* @param setArray the set array
*/
- public TestContextTreeSetItem(final String[] setArray) {}
+ public TestContextTreeSetItem(final String[] setArray) {
+ this.setValue = new TreeSet<>(Arrays.asList(setArray));
+ }
/**
* The Constructor.