summaryrefslogtreecommitdiffstats
path: root/xacml-test
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2021-05-07 12:37:05 +0000
committerGerrit Code Review <gerrit@onap.org>2021-05-07 12:37:05 +0000
commit5e1e87eaa4ba802c5179744516812e52e562f816 (patch)
treec1a7c05eb718cc0947e43160aaa9ade6ab95fd8e /xacml-test
parent07a780ed00e2d494707765951c227e19b5dec43b (diff)
parent5301a4b0b49eb568d05d59fd20d7b5724b47b8ac (diff)
Merge "Fix sonars in xacml-pdp"
Diffstat (limited to 'xacml-test')
-rw-r--r--xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java b/xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java
index cb12e0f6..e2bdd96a 100644
--- a/xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java
+++ b/xacml-test/src/main/java/org/onap/policy/pdp/xacml/xacmltest/TestUtils.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019, 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.
@@ -60,7 +60,7 @@ public class TestUtils {
//
// Decode it
//
- String policyYaml = ResourceUtils.getResourceAsString(resourceFile);
+ var policyYaml = ResourceUtils.getResourceAsString(resourceFile);
//
// Serialize it into a class
//
@@ -73,7 +73,7 @@ public class TestUtils {
//
// Make sure all the fields are setup properly
//
- JpaToscaServiceTemplate jtst = new JpaToscaServiceTemplate();
+ var jtst = new JpaToscaServiceTemplate();
jtst.fromAuthorative(serviceTemplate);
ToscaServiceTemplate completedJtst = jtst.toAuthorative();
//
@@ -92,4 +92,4 @@ public class TestUtils {
return loadedPolicies;
}
-} \ No newline at end of file
+}