From 10ab4dd9ed9aab68d2cef281e9cbbddd83e55c6c Mon Sep 17 00:00:00 2001 From: lapentafd Date: Mon, 12 Dec 2022 15:06:45 +0000 Subject: Fix intermittent clamp test failure Issue-ID: POLICY-4476 Change-Id: I93a14336fa4197c241ad5880e2f597820fd809ce Signed-off-by: lapentafd --- .../models/acm/persistence/provider/AcDefinitionProviderTest.java | 4 ++-- 1 file 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); -- cgit 1.2.3-korg