From 908406b09093cda33415f8b611482175b32d070c Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Wed, 10 Feb 2021 17:25:39 -0500 Subject: More sonars in pap Addressed the following issues: - don't use eq() with verify() Issue-ID: POLICY-2911 Change-Id: Idf08195e4e2fb74e5e0d0d30f31b9e630720f48f Signed-off-by: Jim Hahn --- .../org/onap/policy/pap/main/comm/msgdata/RequestImplTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main/src/test/java/org/onap') diff --git a/main/src/test/java/org/onap/policy/pap/main/comm/msgdata/RequestImplTest.java b/main/src/test/java/org/onap/policy/pap/main/comm/msgdata/RequestImplTest.java index d57f667f..36209ead 100644 --- a/main/src/test/java/org/onap/policy/pap/main/comm/msgdata/RequestImplTest.java +++ b/main/src/test/java/org/onap/policy/pap/main/comm/msgdata/RequestImplTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP PAP * ================================================================================ - * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C) 2020 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); @@ -127,7 +127,7 @@ public class RequestImplTest extends CommonRequestBase { verify(timers).register(eq(msg.getRequestId()), any()); verify(publisher).enqueue(token); - verify(dispatcher).unregister(eq(msg.getRequestId())); + verify(dispatcher).unregister(msg.getRequestId()); verify(dispatcher).register(eq(msg2.getRequestId()), any()); verify(timers).register(eq(msg2.getRequestId()), any()); @@ -192,7 +192,7 @@ public class RequestImplTest extends CommonRequestBase { assertNotNull(token); assertNull(token.get()); - verify(dispatcher).unregister(eq(msg.getRequestId())); + verify(dispatcher).unregister(msg.getRequestId()); verify(timer).cancel(); } @@ -213,7 +213,7 @@ public class RequestImplTest extends CommonRequestBase { assertNotNull(token); assertNull(token.get()); - verify(dispatcher).unregister(eq(msg.getRequestId())); + verify(dispatcher).unregister(msg.getRequestId()); verify(timer).cancel(); // if start publishing again - should use a new token -- cgit 1.2.3-korg