diff options
author | FrancescoFioraEst <francesco.fiora@est.tech> | 2022-12-15 16:19:44 +0000 |
---|---|---|
committer | Liam Fallon <liam.fallon@est.tech> | 2022-12-16 13:36:34 +0000 |
commit | 11ff808f95a2d9a0e43ccf880195ee63b9de0460 (patch) | |
tree | 9429fa8053b7cf0d1a905d82c2935694fa6d9143 /models/src/test/java | |
parent | 0b5e99601abc5290d241f2082f12758ea46231ef (diff) |
Fix copy contructor in DocToscaServiceTemplate in ACM
Issue-ID: POLICY-4486
Change-Id: Ic13daae3c9c8ebdf72a30dcdac59b3a944f77893
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Diffstat (limited to 'models/src/test/java')
-rw-r--r-- | models/src/test/java/org/onap/policy/clamp/models/acm/persistence/provider/AcDefinitionProviderTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/src/test/java/org/onap/policy/clamp/models/acm/persistence/provider/AcDefinitionProviderTest.java b/models/src/test/java/org/onap/policy/clamp/models/acm/persistence/provider/AcDefinitionProviderTest.java index 8184ef1a4..59e3767d1 100644 --- a/models/src/test/java/org/onap/policy/clamp/models/acm/persistence/provider/AcDefinitionProviderTest.java +++ b/models/src/test/java/org/onap/policy/clamp/models/acm/persistence/provider/AcDefinitionProviderTest.java @@ -22,7 +22,6 @@ package org.onap.policy.clamp.models.acm.persistence.provider; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.fail; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.mock; @@ -66,7 +65,7 @@ class AcDefinitionProviderTest { var docServiceTemplate = new DocToscaServiceTemplate(inputServiceTemplateProperties); var docServiceTemplateCopy = new DocToscaServiceTemplate(docServiceTemplate); - assertNotEquals(0, docServiceTemplate.compareTo(docServiceTemplateCopy)); + assertThat(docServiceTemplate.compareTo(docServiceTemplateCopy)).isEqualByComparingTo(0); assertThat(docServiceTemplate.compareToWithoutEntities(docServiceTemplateCopy)).isZero(); var acmDefinition = getAcDefinition(docServiceTemplate); |