summaryrefslogtreecommitdiffstats
path: root/auth/cli-editor
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-08-26 16:22:12 -0400
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2021-08-26 16:22:19 -0400
commita90a763fa3c9260c3a5e08440ec99e4438852e77 (patch)
treecfc6a1fc63005c81da72c4823948914084e8b6cc /auth/cli-editor
parent83d39d27d8b549f551d45221f764eac90c69cc2c (diff)
Fix sonar issues
Issue-ID: POLICY-3077 Change-Id: I480b97984754ec4b69c6cde6481510fbbf62252e Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'auth/cli-editor')
-rw-r--r--auth/cli-editor/src/test/java/org/onap/policy/apex/auth/clieditor/CommandLineCommandTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/auth/cli-editor/src/test/java/org/onap/policy/apex/auth/clieditor/CommandLineCommandTest.java b/auth/cli-editor/src/test/java/org/onap/policy/apex/auth/clieditor/CommandLineCommandTest.java
index c3789b5e3..7c3e4cb01 100644
--- a/auth/cli-editor/src/test/java/org/onap/policy/apex/auth/clieditor/CommandLineCommandTest.java
+++ b/auth/cli-editor/src/test/java/org/onap/policy/apex/auth/clieditor/CommandLineCommandTest.java
@@ -98,22 +98,22 @@ public class CommandLineCommandTest {
assertEquals(0, commandLineCommand.compareTo(commandLineCommand));
CommandLineCommand otherCommand = new CommandLineCommand();
otherCommand.setSystemCommand(true);
- assertThat(commandLineCommand.compareTo(otherCommand)).isNotZero();
+ assertThat(commandLineCommand).isNotEqualByComparingTo(otherCommand);
otherCommand.getArgumentList().add(new CommandLineArgument("testArgument"));
- assertThat(commandLineCommand.compareTo(otherCommand)).isNotZero();
+ assertThat(commandLineCommand).isNotEqualByComparingTo(otherCommand);
}
@Test
public void testCompareKeywordList() {
CommandLineCommand otherCommand = new CommandLineCommand();
otherCommand.getKeywordlist().add("test");
- assertThat(commandLineCommand.compareTo(otherCommand)).isNotZero();
+ assertThat(commandLineCommand).isNotEqualByComparingTo(otherCommand);
commandLineCommand.getKeywordlist().add("test");
assertEquals(0, commandLineCommand.compareTo(otherCommand));
commandLineCommand.getKeywordlist().add("test2");
- assertThat(commandLineCommand.compareTo(otherCommand)).isNotZero();
+ assertThat(commandLineCommand).isNotEqualByComparingTo(otherCommand);
otherCommand.getKeywordlist().add("test3");
- assertThat(commandLineCommand.compareTo(otherCommand)).isNotZero();
+ assertThat(commandLineCommand).isNotEqualByComparingTo(otherCommand);
}
@Test