X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=models-tosca%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fmodels%2Ftosca%2Fsimple%2Fconcepts%2FJpaToscaDataTypeTest.java;h=e00e48f2118f3dffb5f4607bbc4e32260bb7fbfe;hb=dbb37442ecf243d3bcaf50f908691ad6f810ccfc;hp=c2f372f80f70b8711bdb2119df7efbcfaeda7e7a;hpb=e88e4b3281fa4881093ccd1dfae8f826a5e9ff5a;p=policy%2Fmodels.git diff --git a/models-tosca/src/test/java/org/onap/policy/models/tosca/simple/concepts/JpaToscaDataTypeTest.java b/models-tosca/src/test/java/org/onap/policy/models/tosca/simple/concepts/JpaToscaDataTypeTest.java index c2f372f80..e00e48f21 100644 --- a/models-tosca/src/test/java/org/onap/policy/models/tosca/simple/concepts/JpaToscaDataTypeTest.java +++ b/models-tosca/src/test/java/org/onap/policy/models/tosca/simple/concepts/JpaToscaDataTypeTest.java @@ -24,6 +24,7 @@ package org.onap.policy.models.tosca.simple.concepts; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; @@ -88,16 +89,16 @@ public class JpaToscaDataTypeTest { assertEquals(-1, tdt.compareTo(null)); assertEquals(0, tdt.compareTo(tdt)); - assertFalse(tdt.compareTo(tdt.getKey()) == 0); + assertNotEquals(0, tdt.compareTo(tdt.getKey())); PfConceptKey otherDtKey = new PfConceptKey("otherDt", VERSION_001); JpaToscaDataType otherDt = new JpaToscaDataType(otherDtKey); - assertFalse(tdt.compareTo(otherDt) == 0); + assertNotEquals(0, tdt.compareTo(otherDt)); otherDt.setKey(dtKey); - assertFalse(tdt.compareTo(otherDt) == 0); + assertNotEquals(0, tdt.compareTo(otherDt)); otherDt.setConstraints(constraints); - assertFalse(tdt.compareTo(otherDt) == 0); + assertNotEquals(0, tdt.compareTo(otherDt)); otherDt.setProperties(properties); assertEquals(0, tdt.compareTo(otherDt));