Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nixonwidjaja committed Oct 30, 2023
1 parent a973acb commit 61db075
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/java/seedu/address/logic/commands/SortCommandTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package seedu.address.logic.commands;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.address.testutil.TypicalPersons.ALICE;
import static seedu.address.testutil.TypicalPersons.BENSON;
Expand Down Expand Up @@ -29,4 +31,12 @@ public void execute_success() {
assertCommandSuccess(new SortCommand("dep"), model, SortCommand.MESSAGE_SUCCESS, model);
assertCommandSuccess(new SortCommand("dob"), model, SortCommand.MESSAGE_SUCCESS, model);
}

@Test
public void equals() {
assertNotEquals(new SortCommand("name"), null);
assertEquals(new SortCommand("name"), new SortCommand("name"));
SortCommand command = new SortCommand("name");
assertEquals(command, command);
}
}

0 comments on commit 61db075

Please sign in to comment.