summaryrefslogtreecommitdiffstats
path: root/controlloop/common/eventmanager/src/test
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-02-10 17:07:25 -0500
committerJim Hahn <jrh3@att.com>2021-02-10 17:13:44 -0500
commit7c1511b24bdb9bea6ec3ca4933f77011df3bbd4e (patch)
tree88873a960ebf9ae5fef4b2b8030fed3f6674f8b1 /controlloop/common/eventmanager/src/test
parent8556d05a8363b6918595d04379e6f720cc4f694a (diff)
More sonars in drools-apps
Addressed the following issues: - commented-out code - don't use eq() with verify() - use class::cast lambda Issue-ID: POLICY-2910 Change-Id: I12f4f85fb226f3ddb8305105e988fa90e276e9f6 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/common/eventmanager/src/test')
-rw-r--r--controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/LockDataTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/LockDataTest.java b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/LockDataTest.java
index 164dfb4d1..4adb59e4b 100644
--- a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/LockDataTest.java
+++ b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/LockDataTest.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2020-2021 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.
@@ -28,7 +28,6 @@ import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
@@ -186,8 +185,8 @@ public class LockDataTest {
assertNotNull(end);
assertTrue(start.compareTo(end) <= 0);
- verify(callback1).accept(eq(outcome));
- verify(callback2).accept(eq(outcome));
- verify(callback3).accept(eq(outcome));
+ verify(callback1).accept(outcome);
+ verify(callback2).accept(outcome);
+ verify(callback3).accept(outcome);
}
}