aboutsummaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
Diffstat (limited to 'auth')
-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