forked from nus-cs2103-AY2425S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create test for SaveCommand
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/test/java/seedu/address/logic/commands/SaveCommandTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package seedu.address.logic.commands; | ||
|
||
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess; | ||
import static seedu.address.logic.commands.SaveCommand.MESSAGE_SUCCESS; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import seedu.address.model.Model; | ||
import seedu.address.model.ModelManager; | ||
|
||
public class SaveCommandTest { | ||
private Model model = new ModelManager(); | ||
private Model expectedModel = new ModelManager(); | ||
|
||
@Test | ||
public void execute_save_success() { | ||
CommandResult expectedCommandResult = new CommandResult(MESSAGE_SUCCESS, false, false, true, false); | ||
assertCommandSuccess(new SaveCommand(), model, expectedCommandResult, expectedModel); | ||
} | ||
} |