diff options
author | Jim Hahn <jrh3@att.com> | 2021-08-27 15:24:06 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-08-27 16:08:00 -0400 |
commit | f4580fa8a931c84b36d59e2ef853d1fba3d5917e (patch) | |
tree | 0c6a047fadfa26898af614460ac8699f2aa4a4ab /plugins/plugins-executor/plugins-executor-javascript/src/test | |
parent | 9d8894092ced589c0bdc5b9e85ee1bf1c85d3e36 (diff) |
Fix sonars in apex-pdp #2
plugins-events thru plugins-persistence-jpa-eclipselink
Fixed:
- use "var"
- disambiguate method parameter types
- rename parameter
Issue-ID: POLICY-3093
Change-Id: Ife5897015be495403e731754d5862b803a217c87
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'plugins/plugins-executor/plugins-executor-javascript/src/test')
-rw-r--r-- | plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskSelectExecutorTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskSelectExecutorTest.java b/plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskSelectExecutorTest.java index 78ac85366..d2bb852b6 100644 --- a/plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskSelectExecutorTest.java +++ b/plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskSelectExecutorTest.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2019-2020 Nordix Foundation. + * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -85,9 +86,8 @@ public class JavascriptTaskSelectExecutorTest { state.getTaskSelectionLogic().setLogic("java.lang.String"); jtse.prepare(); - assertThatThrownBy(() -> { - jtse.execute(-1, new Properties(), null); - }).isInstanceOf(NullPointerException.class); + final var props = new Properties(); + assertThatThrownBy(() -> jtse.execute(-1, props, null)).isInstanceOf(NullPointerException.class); AxEvent axEvent = new AxEvent(new AxArtifactKey("Event", "0.0.1")); EnEvent event = new EnEvent(axEvent); |