From 68945ddb6e7c376ffb5696dddffbb99b33e6dbcc Mon Sep 17 00:00:00 2001 From: vempo Date: Sun, 8 Jul 2018 11:29:54 +0300 Subject: Specified test scope for junit/testng/mockito In some modules junit, testng, and mockito where included with default scope. Also, fixed the versions to reference a property from a parent pom. Change-Id: I2477bc631a7593c7176087c9088d2c9f2c2a34ee Issue-ID: SDC-1065 Signed-off-by: vempo --- .../onap-configuration-management-core/pom.xml | 1 - .../onap-configuration-management-test/pom.xml | 48 ++------------- .../onap-sdc-artifact-generator-test/pom.xml | 70 ++++++++++------------ .../openecomp-sdc-healthcheck-manager/pom.xml | 5 +- .../openecomp-sdc-item-permissions-manager/pom.xml | 4 +- .../openecomp-sdc-validation-manager/pom.xml | 5 -- .../openecomp-config-lib/pom.xml | 6 -- .../openecomp-item-permissions-core/pom.xml | 2 + .../openecomp-item-permissions-impl/pom.xml | 6 ++ .../openecomp-sdc-notification-core/pom.xml | 2 +- .../pom.xml | 2 +- .../activity-spec-service/pom.xml | 5 ++ services/activity-spec/pom.xml | 5 ++ 13 files changed, 64 insertions(+), 97 deletions(-) diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/pom.xml b/common/onap-common-configuration-management/onap-configuration-management-core/pom.xml index a05a95ee60..ad2be72c2a 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-core/pom.xml +++ b/common/onap-common-configuration-management/onap-configuration-management-core/pom.xml @@ -3,7 +3,6 @@ 4.0.0 onap-configuration-management-core - org.onap.sdc.common onap-configuration-management-core diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/pom.xml b/common/onap-common-configuration-management/onap-configuration-management-test/pom.xml index 36065f3e57..64ed8a84b1 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-test/pom.xml +++ b/common/onap-common-configuration-management/onap-configuration-management-test/pom.xml @@ -3,7 +3,6 @@ 4.0.0 onap-configuration-management-test - org.onap.sdc.common onap-configuration-management-test @@ -15,55 +14,20 @@ - org.onap.sdc.common - onap-configuration-management-core - ${project.version} - - + org.onap.sdc.common + onap-configuration-management-core + ${project.version} + junit junit - 4.11 + ${junit.version} + test - - - - - org.apache.maven.plugins maven-surefire-plugin diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/pom.xml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/pom.xml index 48a16a3575..e3818934f4 100644 --- a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/pom.xml +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/pom.xml @@ -17,51 +17,45 @@ - org.apache.maven.plugins - maven-shade-plugin - ${mvn.shade.version} - - - package - - shade - - - - - com.google.guava:* - - - - - - + org.apache.maven.plugins + maven-shade-plugin + ${mvn.shade.version} + + + package + + shade + + + + + com.google.guava:* + + + + + + - org.testng - testng - compile + junit + junit + ${junit.version} + + + org.onap.sdc.common + onap-sdc-artifact-generator-api + ${project.version} + + + org.onap.sdc.common + onap-sdc-artifact-generator-core + ${project.version} - - junit - junit - 4.11 - - - org.onap.sdc.common - onap-sdc-artifact-generator-api - ${project.version} - - - - org.onap.sdc.common - onap-sdc-artifact-generator-core - ${project.version} - diff --git a/openecomp-be/backend/openecomp-sdc-healthcheck-manager/pom.xml b/openecomp-be/backend/openecomp-sdc-healthcheck-manager/pom.xml index a667f487b3..f2db4d382d 100644 --- a/openecomp-be/backend/openecomp-sdc-healthcheck-manager/pom.xml +++ b/openecomp-be/backend/openecomp-sdc-healthcheck-manager/pom.xml @@ -44,12 +44,13 @@ org.mockito mockito-all - 1.10.19 + ${mockito.all.version} + test junit junit - 4.12 + ${junit.version} test diff --git a/openecomp-be/backend/openecomp-sdc-item-permissions-manager/pom.xml b/openecomp-be/backend/openecomp-sdc-item-permissions-manager/pom.xml index 6fddbe4ddf..8cf113dc32 100644 --- a/openecomp-be/backend/openecomp-sdc-item-permissions-manager/pom.xml +++ b/openecomp-be/backend/openecomp-sdc-item-permissions-manager/pom.xml @@ -60,11 +60,13 @@ org.testng testng ${testng.version} + test org.mockito mockito-all - RELEASE + ${mockito.all.version} + test diff --git a/openecomp-be/backend/openecomp-sdc-validation-manager/pom.xml b/openecomp-be/backend/openecomp-sdc-validation-manager/pom.xml index 266c354dd0..fa3ccd64ac 100644 --- a/openecomp-be/backend/openecomp-sdc-validation-manager/pom.xml +++ b/openecomp-be/backend/openecomp-sdc-validation-manager/pom.xml @@ -36,11 +36,6 @@ ${junit.version} test - org.openecomp.sdc openecomp-sdc-translator-core diff --git a/openecomp-be/lib/openecomp-core-lib/openecomp-config-lib/pom.xml b/openecomp-be/lib/openecomp-core-lib/openecomp-config-lib/pom.xml index c9b05556b0..e5aec475b6 100644 --- a/openecomp-be/lib/openecomp-core-lib/openecomp-config-lib/pom.xml +++ b/openecomp-be/lib/openecomp-core-lib/openecomp-config-lib/pom.xml @@ -25,12 +25,6 @@ ${testng.version} test - diff --git a/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-core/pom.xml b/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-core/pom.xml index e6922e778f..3b6027e36d 100644 --- a/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-core/pom.xml +++ b/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-core/pom.xml @@ -20,6 +20,7 @@ javax.servlet servlet-api ${servlet-api.version} + provided org.openecomp.sdc.core @@ -50,6 +51,7 @@ org.mockito mockito-all ${mockito.all.version} + test org.testng diff --git a/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/pom.xml b/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/pom.xml index 3d804612ca..06b4ee8fc8 100644 --- a/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/pom.xml +++ b/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/pom.xml @@ -23,6 +23,12 @@ ${project.version} runtime + + org.mockito + mockito-all + ${mockito.all.version} + test + org.testng testng diff --git a/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-core/pom.xml b/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-core/pom.xml index be2474fade..76a8063110 100644 --- a/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-core/pom.xml +++ b/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-core/pom.xml @@ -23,7 +23,7 @@ org.mockito mockito-all test - 1.10.19 + ${mockito.all.version} junit diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/pom.xml b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/pom.xml index 8511b6e71e..4beda3bcbc 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/pom.xml +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/pom.xml @@ -64,7 +64,7 @@ junit junit - 4.12 + ${junit.version} test diff --git a/services/activity-spec/activity-spec-web/activity-spec-service/pom.xml b/services/activity-spec/activity-spec-web/activity-spec-service/pom.xml index 14fba4f3a7..f31fe49974 100644 --- a/services/activity-spec/activity-spec-web/activity-spec-service/pom.xml +++ b/services/activity-spec/activity-spec-web/activity-spec-service/pom.xml @@ -89,6 +89,11 @@ test ${testng.version} + + org.mockito + mockito-all + test + diff --git a/services/activity-spec/pom.xml b/services/activity-spec/pom.xml index 653ebec903..a5c8358c0b 100644 --- a/services/activity-spec/pom.xml +++ b/services/activity-spec/pom.xml @@ -102,6 +102,11 @@ 1.16.20 provided + + org.mockito + mockito-all + ${mockito.all.version} + -- cgit 1.2.3-korg