From cb96f235f1fda8b2fd76289292eb4dbd9ac58bec Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Thu, 10 Mar 2022 10:49:49 +0000 Subject: Clean up unit tests - use the unified functional pmsh test case - fix some sonar lint issues Issue-ID: POLICY-3945 Change-Id: Ic49ea9494cde88a8e0d37260d1461b9775ec9ed5 Signed-off-by: adheli.tavares --- models/pom.xml | 23 +- .../acm/concepts/AcElementStatisticsTest.java | 19 +- .../concepts/AutomationCompositionElementTest.java | 22 +- .../acm/concepts/AutomationCompositionTest.java | 20 +- .../acm/concepts/ParticipantStatisticsTest.java | 18 +- .../clamp/models/acm/concepts/ParticipantTest.java | 20 +- .../models/acm/concepts/ParticipantUtilsTest.java | 4 +- .../AutomationCompositionNotificationTest.java | 35 +- .../AutomationCompositionStatusTest.java | 15 +- .../participant/AutomationCompositionAckTest.java | 4 +- .../AutomationCompositionStateChangeTest.java | 4 +- .../AutomationCompositionUpdateTest.java | 4 +- .../participant/ParticipantAckMessageTest.java | 8 +- .../participant/ParticipantDeregisterAckTest.java | 4 +- .../participant/ParticipantDeregisterTest.java | 4 +- .../dmaap/participant/ParticipantMessageTest.java | 8 +- .../participant/ParticipantRegisterAckTest.java | 4 +- .../dmaap/participant/ParticipantRegisterTest.java | 4 +- .../participant/ParticipantStatusReqTest.java | 4 +- .../dmaap/participant/ParticipantStatusTest.java | 4 +- .../participant/ParticipantUpdateAckTest.java | 4 +- .../dmaap/participant/ParticipantUpdateTest.java | 4 +- .../instantiation/InstantiationCommandTest.java | 20 +- .../concepts/JpaAcElementStatisticsTest.java | 21 +- .../JpaAutomationCompositionElementTest.java | 27 +- .../concepts/JpaAutomationCompositionTest.java | 30 +- .../concepts/JpaParticipantStatisticsTest.java | 21 +- .../persistence/concepts/JpaParticipantTest.java | 124 +- .../provider/AcElementStatisticsProviderTest.java | 11 +- .../AutomationCompositionProviderTest.java | 75 +- .../provider/ParticipantProviderTest.java | 40 +- .../ParticipantStatisticsProviderTest.java | 6 +- .../provider/ServiceTemplateProviderTest.java | 56 +- .../clamp/models/acm/utils/AcmUtilsTest.java | 21 +- .../examples/acm/PMSubscriptionHandling.yaml | 3325 -------------------- .../acm/test-pm-subscription-handling.yaml | 3325 ++++++++++++++++++++ .../providers/tosca-for-smoke-testing.yaml | 966 ------ 37 files changed, 3680 insertions(+), 4624 deletions(-) delete mode 100644 models/src/test/resources/examples/acm/PMSubscriptionHandling.yaml create mode 100644 models/src/test/resources/examples/acm/test-pm-subscription-handling.yaml delete mode 100644 models/src/test/resources/providers/tosca-for-smoke-testing.yaml diff --git a/models/pom.xml b/models/pom.xml index ad70f4f64..71fbdb15d 100644 --- a/models/pom.xml +++ b/models/pom.xml @@ -1,7 +1,7 @@