diff options
author | Jim Hahn <jrh3@att.com> | 2021-02-10 17:25:39 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-02-10 17:26:32 -0500 |
commit | 908406b09093cda33415f8b611482175b32d070c (patch) | |
tree | a197a7eb127b3bc8a88bfcab48b633456a32eae9 /main/src/test | |
parent | 21965a91bf711035d3c60736d63c5d67211c301e (diff) |
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 <jrh3@att.com>
Diffstat (limited to 'main/src/test')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/comm/msgdata/RequestImplTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
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 |