From 0bfa9b4dfe33aa70fa921aa5e5c684790fd030d6 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Mon, 1 Oct 2018 15:05:58 +0100 Subject: 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 --- .../policy/apex/context/test/concepts/TestContextTreeSetItem.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'context') 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. -- cgit 1.2.3-korg