Add mapper class 58/83658/11
authorJim Hahn <jrh3@att.com>
Fri, 29 Mar 2019 22:36:56 +0000 (18:36 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 2 Apr 2019 00:23:58 +0000 (20:23 -0400)
commit3830d26928b1a654afbd1206528f3afd741cad1a
treeed50a2f9fd00bab055a48b41ac62876edd358cb7
parentdf456cc61db87de428120e287c941b47a455ff3b
Add mapper class

Added class to map between classes in models-pap and models-pdp.
Used constants in appropriate places.
Re-use maker functions.
Added some comment.
Corrected a comment.
Added mapping method for PdpDeployPolicies.
Added PdpDeployPolicies to "internal" package.
Updated to reflect refactoring of ToscaPolicy.
Fixed bug/typo in assertEquals test.

Updated tests to work with models-pdp not based on PfConceptKey.

Change-Id: I31cd4aaf58fa7dc39cea76349cc1337637a1b786
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/comm/PdpModifyRequestMap.java
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/UpdateData.java
main/src/main/java/org/onap/policy/pap/main/internal/PdpDeployPolicies.java [new file with mode: 0644]
main/src/main/java/org/onap/policy/pap/main/mapper/Mapper.java [new file with mode: 0644]
main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java
main/src/test/java/org/onap/policy/pap/main/comm/msgdata/UpdateDataTest.java
main/src/test/java/org/onap/policy/pap/main/internal/TestModels.java [new file with mode: 0644]
main/src/test/java/org/onap/policy/pap/main/mapper/MapperTest.java [new file with mode: 0644]