diff options
author | liamfallon <liam.fallon@ericsson.com> | 2018-10-01 15:05:58 +0100 |
---|---|---|
committer | liamfallon <liam.fallon@ericsson.com> | 2018-10-01 15:06:07 +0100 |
commit | 0bfa9b4dfe33aa70fa921aa5e5c684790fd030d6 (patch) | |
tree | f9992a354e3d37216c61c6f82252b43276e629a5 /context | |
parent | acb59c7b0ccbb86f4c38a94b72e7bab73b2acf8f (diff) |
Refactor monitoring REST tests to remove PowerMock
Removed PowerMock from tests becasue coverage of PowerMock is not counted
by JaCoCO. It was easier to remove PowerMock than to try and hack the build
get PowerMock coverage counted.
Issue-ID: POLICY-1034
Change-Id: Ifc3e1ff93b2bfcb5619a5af6dec320d2de992f87
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'context')
-rw-r--r-- | context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/concepts/TestContextTreeSetItem.java | 5 |
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. |