aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/plugins-executor
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/plugins-executor')
-rw-r--r--plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskExecutorTest.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskExecutorTest.java b/plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskExecutorTest.java
index fbf7db864..215491d4e 100644
--- a/plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskExecutorTest.java
+++ b/plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskExecutorTest.java
@@ -166,19 +166,16 @@ public class JavascriptTaskExecutorTest {
internalContext.getContextAlbums().put(contextAlbum.getKey(), contextAlbum);
task.getContextAlbumReferences().add(contextAlbum.getKey());
- String parKey0 = "par0";
- task.getOutputFields().put(parKey0, null);
- String parKey1 = "par1";
- task.getOutputFields().put(parKey1, null);
jte.setContext(null, task, internalContext);
-
+ String parKey0 = "par0";
Map<String, Object> incomingParameters = new HashMap<>();
incomingParameters.put(parKey0, "value0");
AxEvent inEvent = new AxEvent();
inEvent.setParameterMap(Map.of(parKey0, new AxField()));
task.setInputEvent(inEvent);
+ String parKey1 = "par1";
AxEvent outEvent = new AxEvent();
outEvent.setParameterMap(Map.of(parKey0, new AxField(), parKey1, new AxField()));
final String eventName = "event1";