diff options
author | Jim Hahn <jrh3@att.com> | 2020-06-30 07:23:40 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-06-30 07:26:37 -0400 |
commit | fd62fcfdf1bb55a9ece78b356c04359883072ee7 (patch) | |
tree | 5ebdfad50abd186f2c290d580d3bbcaf81589c70 /applications/common/src/test/java | |
parent | 05506483dff28c491522beeaaea0f6904077e3ed (diff) |
Fix more sonars in xacml-pdp
Somehow missed this sonar issue in one line of code:
- invoke only one method in a junit lambda
Issue-ID: POLICY-2681
Change-Id: I03a6708e0d3ed2a43577a63d0f3cdfc9bd76c8d8
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'applications/common/src/test/java')
-rw-r--r-- | applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/XacmlPolicyUtilsTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/XacmlPolicyUtilsTest.java b/applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/XacmlPolicyUtilsTest.java index d3aba91f..9ff81423 100644 --- a/applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/XacmlPolicyUtilsTest.java +++ b/applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/XacmlPolicyUtilsTest.java @@ -211,9 +211,10 @@ public class XacmlPolicyUtilsTest { assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() -> XacmlPolicyUtils.writePolicyFile(fileTemp, "not a policy") ); + + Path rootPath = policyFolder.getRoot().toPath(); assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() -> - XacmlPolicyUtils.constructUniquePolicyFilename("not a policy", - policyFolder.getRoot().toPath()) + XacmlPolicyUtils.constructUniquePolicyFilename("not a policy", rootPath) ); } |