Use enums from models-pdp in models-pap 09/83109/2
authorJim Hahn <jrh3@att.com>
Sun, 24 Mar 2019 03:42:34 +0000 (23:42 -0400)
committerJim Hahn <jrh3@att.com>
Sun, 24 Mar 2019 03:42:34 +0000 (23:42 -0400)
Modified models-pap to use enums from models-pdp instead of
from pdp-common.

Change-Id: I3bc296358c672dff9c218c734583a135e5503e4c
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
models-pap/pom.xml
models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroup.java
models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpInstanceDetails.java
models-pap/src/test/java/org/onap/policy/models/pap/concepts/TestPdpGroup.java
models-pap/src/test/java/org/onap/policy/models/pap/concepts/TestPdpInstanceDetails.java

index 9257b9b..edb8ee7 100644 (file)
@@ -33,9 +33,9 @@
     <description>The models for Policy Administration (PAP) REST API's.</description>
     <dependencies>
         <dependency>
-            <groupId>org.onap.policy.common</groupId>
-            <artifactId>pdp-common</artifactId>
-            <version>${policy.common.version}</version>
+            <groupId>org.onap.policy.models</groupId>
+            <artifactId>models-pdp</artifactId>
+            <version>${project.version}</version>
         </dependency>
         <dependency>
             <groupId>org.onap.policy.models</groupId>
index a42ac21..d5e4191 100644 (file)
@@ -29,7 +29,7 @@ import lombok.NonNull;
 import lombok.Setter;
 import lombok.ToString;
 import org.onap.policy.models.base.PfUtils;
-import org.onap.policy.pdp.common.enums.PdpState;
+import org.onap.policy.models.pdp.enums.PdpState;
 
 /**
  * Class to represent a PDPGroup, which groups multiple PDPSubGroup entities together for a particular domain.
index 4f9041c..c214c74 100644 (file)
@@ -25,8 +25,8 @@ import lombok.Getter;
 import lombok.NonNull;
 import lombok.Setter;
 import lombok.ToString;
-import org.onap.policy.pdp.common.enums.PdpHealthStatus;
-import org.onap.policy.pdp.common.enums.PdpState;
+import org.onap.policy.models.pdp.enums.PdpHealthStatus;
+import org.onap.policy.models.pdp.enums.PdpState;
 
 /**
  * Class to represent details of a running instance of PDP.
index 3dc3c24..ee52d82 100644 (file)
@@ -27,7 +27,7 @@ import java.util.Arrays;
 import java.util.Map;
 import java.util.TreeMap;
 import org.junit.Test;
-import org.onap.policy.pdp.common.enums.PdpState;
+import org.onap.policy.models.pdp.enums.PdpState;
 
 /**
  * Test the copy constructor, as {@link TestModels} tests the other methods.
index 9e48480..65fbef6 100644 (file)
@@ -24,8 +24,8 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.junit.Assert.assertEquals;
 
 import org.junit.Test;
-import org.onap.policy.pdp.common.enums.PdpHealthStatus;
-import org.onap.policy.pdp.common.enums.PdpState;
+import org.onap.policy.models.pdp.enums.PdpHealthStatus;
+import org.onap.policy.models.pdp.enums.PdpState;
 
 /**
  * Test the copy constructor, as {@link TestModels} tests the other methods.