X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=models-pdp%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fmodels%2Fpdp%2Fpersistence%2Fconcepts%2FJpaPdpTest.java;h=74a3c9e31a490f9342869cca9e6f1df6257f7d8b;hb=248a660d61fa03caa4710cf8cfe144eb245b807b;hp=e17b8a8b4239e707c0f9c426e7369b4b9d6e62aa;hpb=f203526d0f86d385976da394bd1f0f918e4445d9;p=policy%2Fmodels.git diff --git a/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java b/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java index e17b8a8b4..74a3c9e31 100644 --- a/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java +++ b/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/concepts/JpaPdpTest.java @@ -1,7 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2019 Nordix Foundation. - * Modifications Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,6 +24,7 @@ package org.onap.policy.models.pdp.persistence.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; @@ -161,7 +162,7 @@ public class JpaPdpTest { assertEquals(0, testJpaPdp.compareTo(otherJpaPdp)); assertEquals(-1, testJpaPdp.compareTo(null)); assertEquals(0, testJpaPdp.compareTo(testJpaPdp)); - assertFalse(testJpaPdp.compareTo(new DummyJpaPdpChild()) == 0); + assertNotEquals(0, testJpaPdp.compareTo(new DummyJpaPdpChild())); testJpaPdp.getKey().setParentLocalName("ParentLocal1"); assertEquals(1, testJpaPdp.compareTo(otherJpaPdp));