diff options
author | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-02-16 16:56:47 +0000 |
---|---|---|
committer | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-02-17 11:02:41 +0000 |
commit | 9f0fbd02f184071c2de30c944bec311741e6180e (patch) | |
tree | ff0cf6121fbd1be353f4692a8b7d00f18c2657f3 /models-pap/src/test | |
parent | 6871f1107e8efcaf90fd97b9da5f8bc52b3a5271 (diff) |
PAP Deployment API changes - change url to uri
Change-Id: I6fa4b001a0c4573a34e1cefe0d32ca969ca5096e
Issue-ID: POLICY-2526
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'models-pap/src/test')
-rw-r--r-- | models-pap/src/test/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponseTest.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/models-pap/src/test/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponseTest.java b/models-pap/src/test/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponseTest.java index 178687daa..d3b8cc497 100644 --- a/models-pap/src/test/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponseTest.java +++ b/models-pap/src/test/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponseTest.java @@ -29,21 +29,26 @@ import org.junit.Test; */ public class PdpGroupDeployResponseTest { - private static final String URL = "/policy/pap/v1/policies/status"; + private static final String URI = "/policy/pap/v1/policies/status"; private static final String MESSAGE = "the message"; @Test public void testPdpGroupDeployResponse() { - assertNotNull(new PdpGroupDeployResponse("message", "url")); + assertNotNull(new PdpGroupDeployResponse("message", "uri")); assertNotNull(new PdpGroupDeployResponse("message", null)); assertNotNull(new PdpGroupDeployResponse(null, null)); + assertNotNull(new PdpGroupDeployResponse()); - PdpGroupDeployResponse resp = new PdpGroupDeployResponse(MESSAGE, URL); + PdpGroupDeployResponse resp = new PdpGroupDeployResponse(MESSAGE, URI); assertEquals(MESSAGE, resp.getMessage()); - assertEquals(URL, resp.getUrl()); + assertEquals(URI, resp.getUri()); resp = new PdpGroupDeployResponse(null, null); assertNull(resp.getMessage()); - assertNull(resp.getUrl()); + assertNull(resp.getUri()); + + resp = new PdpGroupDeployResponse(); + assertNull(resp.getMessage()); + assertNull(resp.getUri()); } } |