Fix intermittent clamp test failure 75/132675/2
authorlapentafd <francesco.lapenta@est.tech>
Mon, 12 Dec 2022 15:06:45 +0000 (15:06 +0000)
committerFrancesco Davide Lapenta <francesco.lapenta@est.tech>
Mon, 12 Dec 2022 15:53:16 +0000 (15:53 +0000)
Issue-ID: POLICY-4476
Change-Id: I93a14336fa4197c241ad5880e2f597820fd809ce
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
models/src/test/java/org/onap/policy/clamp/models/acm/persistence/provider/AcDefinitionProviderTest.java

index 50953d6..8184ef1 100644 (file)
@@ -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);