Code Review
/
policy
/
models.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Address more sonar issues in policy-models
[policy/models.git]
/
models-interactions
/
model-impl
/
events
/
src
/
test
/
java
/
org
/
onap
/
policy
/
controlloop
/
ControlLoopOperationTest.java
diff --git
a/models-interactions/model-impl/events/src/test/java/org/onap/policy/controlloop/ControlLoopOperationTest.java
b/models-interactions/model-impl/events/src/test/java/org/onap/policy/controlloop/ControlLoopOperationTest.java
index
54eec71
..
eaf4ea9
100644
(file)
--- a/
models-interactions/model-impl/events/src/test/java/org/onap/policy/controlloop/ControlLoopOperationTest.java
+++ b/
models-interactions/model-impl/events/src/test/java/org/onap/policy/controlloop/ControlLoopOperationTest.java
@@
-35,11
+35,8
@@
public class ControlLoopOperationTest {
public void test() {
ControlLoopOperation operation = new ControlLoopOperation();
public void test() {
ControlLoopOperation operation = new ControlLoopOperation();
- /*
- * Disabling sonar to test equals().
- */
- assertEquals(operation, operation); // NOSONAR
- assertNotEquals(operation, ""); // NOSONAR
+ assertEquals(operation, (Object) operation);
+ assertNotEquals(operation, (Object) "");
assertNotEquals(operation, null);
assertNotEquals(0, operation.hashCode());
assertNotEquals(operation, null);
assertNotEquals(0, operation.hashCode());