summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlapentafd <francesco.lapenta@est.tech>2022-12-12 15:06:45 +0000
committerFrancesco Davide Lapenta <francesco.lapenta@est.tech>2022-12-12 15:53:16 +0000
commit10ab4dd9ed9aab68d2cef281e9cbbddd83e55c6c (patch)
treef7671cd56873e62e876ee157215c0e14dbe44a3b
parent8554cbb864e32495214fd8287011868a832cc997 (diff)
Fix intermittent clamp test failure
Issue-ID: POLICY-4476 Change-Id: I93a14336fa4197c241ad5880e2f597820fd809ce Signed-off-by: lapentafd <francesco.lapenta@est.tech>
-rw-r--r--models/src/test/java/org/onap/policy/clamp/models/acm/persistence/provider/AcDefinitionProviderTest.java4
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);