summaryrefslogtreecommitdiffstats
path: root/applications/optimization
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-06-19 14:55:44 -0400
committerTaka Cho <takamune.cho@att.com>2020-06-19 14:56:09 -0400
commitea2425bb3a07711c6a6a66dcede24e199a788bf5 (patch)
tree6dc17ae75a8cf71684d027052c148746e111362d /applications/optimization
parentd7176ddc79b3af3ca78dafef7383ed05eb93cdda (diff)
Changes for Checkstyle 8.32
Issue-ID: POLICY-2188 Change-Id: I64a115240a71e5014db9cfb66747887e156afb50 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'applications/optimization')
-rw-r--r--applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java b/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java
index 031ef33c..8886af21 100644
--- a/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java
+++ b/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java
@@ -279,7 +279,7 @@ public class OptimizationPdpApplicationTest {
//
// Add US to the geography list
//
- ((List<String>)baseRequest.getResource().get("geography")).add("US");
+ ((List<String>) baseRequest.getResource().get("geography")).add("US");
//
// Ask for a decision for default US Policy
//
@@ -301,7 +301,7 @@ public class OptimizationPdpApplicationTest {
//
// Add vCPE to the service list
//
- ((List<String>)baseRequest.getResource().get("services")).add("vCPE");
+ ((List<String>) baseRequest.getResource().get("services")).add("vCPE");
//
// Ask for a decision for default US policy for vCPE service
//
@@ -324,7 +324,7 @@ public class OptimizationPdpApplicationTest {
//
// Add vG to the resource list
//
- ((List<String>)baseRequest.getResource().get("resources")).add("vG");
+ ((List<String>) baseRequest.getResource().get("resources")).add("vG");
//
// Ask for a decision for default US service vCPE resource vG policy
//
@@ -347,7 +347,7 @@ public class OptimizationPdpApplicationTest {
//
// Add gold as a scope
//
- ((List<String>)baseRequest.getContext().get("subscriberName")).add("subscriber_a");
+ ((List<String>) baseRequest.getContext().get("subscriberName")).add("subscriber_a");
//
// Ask for a decision for specific US vCPE vG gold
//
@@ -371,8 +371,8 @@ public class OptimizationPdpApplicationTest {
//
// Add platinum to the scope list: this is now gold OR platinum
//
- ((List<String>)baseRequest.getResource().get("scope")).remove("gold");
- ((List<String>)baseRequest.getContext().get("subscriberName")).add("subscriber_x");
+ ((List<String>) baseRequest.getResource().get("scope")).remove("gold");
+ ((List<String>) baseRequest.getContext().get("subscriberName")).add("subscriber_x");
//
// Ask for a decision for specific US vCPE vG (gold or platinum)
//
@@ -396,9 +396,9 @@ public class OptimizationPdpApplicationTest {
//
// Add gold as a scope
//
- ((List<String>)baseRequest.getResource().get("scope")).remove("gold");
- ((List<String>)baseRequest.getResource().get("scope")).remove("platinum");
- ((List<String>)baseRequest.getContext().get("subscriberName")).remove("subscriber_a");
+ ((List<String>) baseRequest.getResource().get("scope")).remove("gold");
+ ((List<String>) baseRequest.getResource().get("scope")).remove("platinum");
+ ((List<String>) baseRequest.getContext().get("subscriberName")).remove("subscriber_a");
//
// Ask for a decision for specific US vCPE vG gold
//
@@ -552,11 +552,11 @@ public class OptimizationPdpApplicationTest {
@SuppressWarnings("unchecked")
private void cleanOutResources() {
- ((List<String>)baseRequest.getResource().get("scope")).clear();
- ((List<String>)baseRequest.getResource().get("services")).clear();
- ((List<String>)baseRequest.getResource().get("resources")).clear();
- ((List<String>)baseRequest.getResource().get("geography")).clear();
- if (((List<String>)baseRequest.getResource().get("policy-type")) != null) {
+ ((List<String>) baseRequest.getResource().get("scope")).clear();
+ ((List<String>) baseRequest.getResource().get("services")).clear();
+ ((List<String>) baseRequest.getResource().get("resources")).clear();
+ ((List<String>) baseRequest.getResource().get("geography")).clear();
+ if (((List<String>) baseRequest.getResource().get("policy-type")) != null) {
baseRequest.getResource().remove("policy-type");
}
}