Move deploy/undeploy REST classes 51/99051/3
authorJim Hahn <jrh3@att.com>
Tue, 3 Dec 2019 15:15:31 +0000 (10:15 -0500)
committerJim Hahn <jrh3@att.com>
Tue, 3 Dec 2019 15:31:15 +0000 (10:31 -0500)
Moved classes from rest.depundep to rest, as they will no longer be
specific to deploy/undeploy.

Change-Id: Iea7c4e35fcd00ed83e678f7cd980e0aa9659f18e
Issue-ID: POLICY-1866
Signed-off-by: Jim Hahn <jrh3@att.com>
18 files changed:
main/src/main/java/org/onap/policy/pap/main/rest/GroupData.java [moved from main/src/main/java/org/onap/policy/pap/main/rest/depundep/GroupData.java with 98% similarity]
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeleteControllerV1.java [moved from main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeleteControllerV1.java with 98% similarity]
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeleteProvider.java [moved from main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeleteProvider.java with 99% similarity]
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployControllerV1.java [moved from main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployControllerV1.java with 98% similarity]
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployProvider.java [moved from main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java with 99% similarity]
main/src/main/java/org/onap/policy/pap/main/rest/PolicyUndeployerImpl.java [moved from main/src/main/java/org/onap/policy/pap/main/rest/depundep/PolicyUndeployerImpl.java with 98% similarity]
main/src/main/java/org/onap/policy/pap/main/rest/ProviderBase.java [moved from main/src/main/java/org/onap/policy/pap/main/rest/depundep/ProviderBase.java with 99% similarity]
main/src/main/java/org/onap/policy/pap/main/rest/SessionData.java [moved from main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java with 99% similarity]
main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
main/src/test/java/org/onap/policy/pap/main/rest/ProviderSuper.java [moved from main/src/test/java/org/onap/policy/pap/main/rest/depundep/ProviderSuper.java with 99% similarity]
main/src/test/java/org/onap/policy/pap/main/rest/TestGroupData.java [moved from main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestGroupData.java with 98% similarity]
main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeleteControllerV1.java [moved from main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeleteControllerV1.java with 97% similarity]
main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeleteProvider.java [moved from main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeleteProvider.java with 98% similarity]
main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeployControllerV1.java [moved from main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeployControllerV1.java with 97% similarity]
main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeployProvider.java [moved from main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeployProvider.java with 99% similarity]
main/src/test/java/org/onap/policy/pap/main/rest/TestPolicyUndeployerImpl.java [moved from main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPolicyUndeployerImpl.java with 99% similarity]
main/src/test/java/org/onap/policy/pap/main/rest/TestProviderBase.java [moved from main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestProviderBase.java with 99% similarity]
main/src/test/java/org/onap/policy/pap/main/rest/TestSessionData.java [moved from main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestSessionData.java with 99% similarity]

@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import lombok.Getter;
 import org.onap.policy.models.pdp.concepts.PdpGroup;
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
@@ -39,7 +39,6 @@ import org.onap.policy.models.base.PfModelException;
 import org.onap.policy.models.base.PfModelRuntimeException;
 import org.onap.policy.models.pap.concepts.PdpGroupDeleteResponse;
 import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicyIdentifierOptVersion;
-import org.onap.policy.pap.main.rest.PapRestControllerV1;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import java.util.Iterator;
 import java.util.Set;
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
@@ -39,7 +39,6 @@ import org.onap.policy.models.base.PfModelRuntimeException;
 import org.onap.policy.models.pap.concepts.PdpDeployPolicies;
 import org.onap.policy.models.pap.concepts.PdpGroupDeployResponse;
 import org.onap.policy.models.pdp.concepts.PdpGroups;
-import org.onap.policy.pap.main.rest.PapRestControllerV1;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import com.att.aft.dme2.internal.apache.commons.lang.ObjectUtils;
 import java.util.ArrayList;
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import java.util.Collection;
 import java.util.Optional;
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import java.util.Collection;
 import java.util.stream.Collectors;
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import java.util.Collection;
 import java.util.Collections;
index 8af6636..f784ed5 100644 (file)
@@ -50,14 +50,14 @@ import org.onap.policy.pap.main.parameters.PdpParameters;
 import org.onap.policy.pap.main.rest.HealthCheckRestControllerV1;
 import org.onap.policy.pap.main.rest.PapAafFilter;
 import org.onap.policy.pap.main.rest.PapStatisticsManager;
+import org.onap.policy.pap.main.rest.PdpGroupDeleteControllerV1;
+import org.onap.policy.pap.main.rest.PdpGroupDeployControllerV1;
 import org.onap.policy.pap.main.rest.PdpGroupHealthCheckControllerV1;
 import org.onap.policy.pap.main.rest.PdpGroupQueryControllerV1;
 import org.onap.policy.pap.main.rest.PdpGroupStateChangeControllerV1;
 import org.onap.policy.pap.main.rest.PolicyStatusControllerV1;
+import org.onap.policy.pap.main.rest.PolicyUndeployerImpl;
 import org.onap.policy.pap.main.rest.StatisticsRestControllerV1;
-import org.onap.policy.pap.main.rest.depundep.PdpGroupDeleteControllerV1;
-import org.onap.policy.pap.main.rest.depundep.PdpGroupDeployControllerV1;
-import org.onap.policy.pap.main.rest.depundep.PolicyUndeployerImpl;
 
 /**
  * This class activates Policy Administration (PAP) as a complete service together with all its controllers, listeners &
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import static org.junit.Assert.assertEquals;
 import static org.mockito.Matchers.any;
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
 import static org.junit.Assert.assertFalse;
@@ -19,7 +19,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import static org.junit.Assert.assertEquals;
 
@@ -27,7 +27,6 @@ import javax.ws.rs.client.Invocation;
 import javax.ws.rs.core.Response;
 import org.junit.Test;
 import org.onap.policy.models.pap.concepts.PdpGroupDeleteResponse;
-import org.onap.policy.pap.main.rest.CommonPapRestServer;
 
 /**
  * Note: this tests failure cases; success cases are tested by tests in the "e2e" package.
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.junit.Assert.assertEquals;
@@ -51,7 +51,7 @@ import org.onap.policy.models.pdp.concepts.PdpUpdate;
 import org.onap.policy.models.pdp.enums.PdpState;
 import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicyIdentifier;
 import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicyIdentifierOptVersion;
-import org.onap.policy.pap.main.rest.depundep.ProviderBase.Updater;
+import org.onap.policy.pap.main.rest.ProviderBase.Updater;
 
 public class TestPdpGroupDeleteProvider extends ProviderSuper {
     private static final String EXPECTED_EXCEPTION = "expected exception";
@@ -19,7 +19,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -35,7 +35,6 @@ import org.onap.policy.models.pap.concepts.PdpGroupDeployResponse;
 import org.onap.policy.models.pdp.concepts.PdpGroup;
 import org.onap.policy.models.pdp.concepts.PdpSubGroup;
 import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicyIdentifierOptVersion;
-import org.onap.policy.pap.main.rest.CommonPapRestServer;
 
 /**
  * Note: this tests failure cases; success cases are tested by tests in the "e2e" package.
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.junit.Assert.assertEquals;
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import static org.junit.Assert.assertEquals;
 import static org.mockito.Matchers.any;
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.junit.Assert.assertEquals;
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.onap.policy.pap.main.rest.depundep;
+package org.onap.policy.pap.main.rest;
 
 import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
 import static org.assertj.core.api.Assertions.assertThatIllegalStateException;