From 53b9324d6ec14ef75dc1f943c19b3ea1a46bc8ab Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Fri, 17 Jul 2020 14:08:52 +0100 Subject: Fix assertTrue in apex-pdp/model apex-pdp/plugins, apex-pdp/services and apex-pdp/testsuites Replace assertTrue with assertEquals and assertFalse with assertNotEquals in apex-pdp/model, apex-pdp/plugins, apex-pdp/services and apex-pdp/testsuites Issue-ID: POLICY-2690 Change-Id: If088371cf012d5648e04ade2aa4d49b38945f6d2 Signed-off-by: JvD_Ericsson --- .../policy/apex/plugins/event/carrier/grpc/ApexGrpcConsumerTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/test') diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/test/java/org/onap/policy/apex/plugins/event/carrier/grpc/ApexGrpcConsumerTest.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/test/java/org/onap/policy/apex/plugins/event/carrier/grpc/ApexGrpcConsumerTest.java index 48fce1bee..bd4103f92 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/test/java/org/onap/policy/apex/plugins/event/carrier/grpc/ApexGrpcConsumerTest.java +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/test/java/org/onap/policy/apex/plugins/event/carrier/grpc/ApexGrpcConsumerTest.java @@ -23,7 +23,6 @@ package org.onap.policy.apex.plugins.event.carrier.grpc; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; import org.assertj.core.api.Assertions; import org.junit.Before; @@ -80,8 +79,8 @@ public class ApexGrpcConsumerTest { grpcConsumer.init(CONSUMER_NAME, consumerParameters, incomingEventReceiver); PeeredReference peeredReference = grpcConsumer.getPeeredReference(EventHandlerPeeredMode.REQUESTOR); assertNotNull(peeredReference); - assertTrue(peeredReference.getPeeredConsumer().equals(grpcConsumer)); - assertTrue(peeredReference.getPeeredProducer().equals(grpcProducer)); + assertEquals(grpcConsumer, peeredReference.getPeeredConsumer()); + assertEquals(grpcProducer, peeredReference.getPeeredProducer()); } private EventHandlerParameters populateConsumerParameters(boolean isConsumer, boolean isPeeredMode) { -- cgit 1.2.3-korg