summaryrefslogtreecommitdiffstats
path: root/POLICY-SDK-APP/src/test
diff options
context:
space:
mode:
authoruj426b <uj426b@att.com>2020-04-22 12:46:19 -0400
committeruj426b <uj426b@att.com>2020-04-22 13:40:01 -0400
commit3c368e2cdb9817ae0b04596f317e966c31aef569 (patch)
tree4d573b8fb864d3496c9a0ba24b6f5b0f6aafc837 /POLICY-SDK-APP/src/test
parent1f35b78f96933ad3a0976d03863e4d23b544ee86 (diff)
Fix for Push/Unpush Policy On GUI
Issue-ID: POLICY-2518 Change-Id: Ie70fc5049f87b55384731900373884d8b25803bb Signed-off-by: uj426b <uj426b@att.com>
Diffstat (limited to 'POLICY-SDK-APP/src/test')
-rw-r--r--POLICY-SDK-APP/src/test/java/org/onap/policy/admin/RESTfulPAPEngineTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/POLICY-SDK-APP/src/test/java/org/onap/policy/admin/RESTfulPAPEngineTest.java b/POLICY-SDK-APP/src/test/java/org/onap/policy/admin/RESTfulPAPEngineTest.java
index ec2643fed..0deb3d6fc 100644
--- a/POLICY-SDK-APP/src/test/java/org/onap/policy/admin/RESTfulPAPEngineTest.java
+++ b/POLICY-SDK-APP/src/test/java/org/onap/policy/admin/RESTfulPAPEngineTest.java
@@ -51,6 +51,7 @@ public class RESTfulPAPEngineTest {
private String policyType = "testType";
private String policyContent = "testContent";
private int jmxport = 0;
+ private String userId = "testId";
OnapPDPGroup group = Mockito.mock(OnapPDPGroup.class);
OnapPDPGroup newGroup = Mockito.mock(OnapPDPGroup.class);
OnapPDP pdp = Mockito.mock(OnapPDP.class);
@@ -159,10 +160,10 @@ public class RESTfulPAPEngineTest {
engine.publishPolicy(id, name, false, policy, newGroup)
);
- engine.copyFile(id, newGroup, policy);
+ engine.copyFile(id, newGroup, policy, userId);
PDPPolicy pdpPolicy = Mockito.mock(PDPPolicy.class);
assertThatExceptionOfType(PAPException.class).isThrownBy(() ->
- engine.copyPolicy(pdpPolicy, newGroup)
+ engine.copyPolicy(pdpPolicy, newGroup, userId)
);
assertThatExceptionOfType(PAPException.class).isThrownBy(() ->
@@ -170,7 +171,7 @@ public class RESTfulPAPEngineTest {
);
assertThatExceptionOfType(PAPException.class).isThrownBy(() ->
- engine.copyPolicy(null, null)
+ engine.copyPolicy(null, null, null)
);
//