diff options
author | lapentafd <francesco.lapenta@est.tech> | 2022-12-12 15:06:45 +0000 |
---|---|---|
committer | Francesco Davide Lapenta <francesco.lapenta@est.tech> | 2022-12-12 15:53:16 +0000 |
commit | 10ab4dd9ed9aab68d2cef281e9cbbddd83e55c6c (patch) | |
tree | f7671cd56873e62e876ee157215c0e14dbe44a3b /models/src/test | |
parent | 8554cbb864e32495214fd8287011868a832cc997 (diff) |
Fix intermittent clamp test failure
Issue-ID: POLICY-4476
Change-Id: I93a14336fa4197c241ad5880e2f597820fd809ce
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Diffstat (limited to 'models/src/test')
-rw-r--r-- | models/src/test/java/org/onap/policy/clamp/models/acm/persistence/provider/AcDefinitionProviderTest.java | 4 |
1 files changed, 2 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 50953d692..8184ef1a4 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,7 @@ 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.assertTrue; +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 +66,7 @@ class AcDefinitionProviderTest { var docServiceTemplate = new DocToscaServiceTemplate(inputServiceTemplateProperties); var docServiceTemplateCopy = new DocToscaServiceTemplate(docServiceTemplate); - assertTrue(docServiceTemplate.compareTo(docServiceTemplateCopy) < -1); + assertNotEquals(0, docServiceTemplate.compareTo(docServiceTemplateCopy)); assertThat(docServiceTemplate.compareToWithoutEntities(docServiceTemplateCopy)).isZero(); var acmDefinition = getAcDefinition(docServiceTemplate); |