summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployControllerV1.java4
-rw-r--r--main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployControllerV1.java b/main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployControllerV1.java
index fe2d8170..7357771d 100644
--- a/main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployControllerV1.java
+++ b/main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployControllerV1.java
@@ -100,7 +100,7 @@ public class PdpGroupDeployControllerV1 extends PapRestControllerV1 {
@HeaderParam(REQUEST_ID_NAME) @ApiParam(REQUEST_ID_PARAM_DESCRIPTION) UUID requestId,
@ApiParam(value = "List of PDP Group Deployments", required = true) DeploymentGroups groups) {
return doOperation(requestId, "update policy deployments failed",
- () -> provider.updateGroupPolicies(groups, getPrincipal()));
+ () -> provider.updateGroupPolicies(groups, getPrincipal()));
}
/**
@@ -144,7 +144,7 @@ public class PdpGroupDeployControllerV1 extends PapRestControllerV1 {
public Response deployPolicies(@HeaderParam(REQUEST_ID_NAME) @ApiParam(REQUEST_ID_PARAM_DESCRIPTION) UUID requestId,
@ApiParam(value = "PDP Policies; only the name is required", required = true) PdpDeployPolicies policies) {
return doOperation(requestId, "deploy policies failed",
- () -> provider.deployPolicies(policies, getPrincipal()));
+ () -> provider.deployPolicies(policies, getPrincipal()));
}
/**
diff --git a/main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java b/main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java
index fd5ff86e..27c01e18 100644
--- a/main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java
+++ b/main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java
@@ -392,8 +392,8 @@ public class PdpModifyRequestMapTest extends CommonRequestBase {
final Iterator<PdpSubGroup> iter = group2.getPdpSubgroups().iterator();
PdpSubGroup subgrp = iter.next();
- assertThat(subgrp.getPdpInstances()).hasSize(0);
- assertThat(subgrp.getCurrentInstanceCount()).isEqualTo(0);
+ assertThat(subgrp.getPdpInstances()).isEmpty();
+ assertThat(subgrp.getCurrentInstanceCount()).isZero();
subgrp = iter.next();
assertThat(subgrp.getPdpInstances()).hasSize(1);