diff --git a/src/test/java/seedu/address/logic/commands/CommandResultTest.java b/src/test/java/seedu/address/logic/commands/CommandResultTest.java index d4986611d97..e1b4f70c31c 100644 --- a/src/test/java/seedu/address/logic/commands/CommandResultTest.java +++ b/src/test/java/seedu/address/logic/commands/CommandResultTest.java @@ -3,6 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; @@ -77,4 +78,15 @@ public void isExit_exitFalse_false() { assertFalse(cr.isExit()); } + @Test + public void getCommandSpecific() { + CommandResult cr = new CommandResult("", CommandSpecific.CLIENT); + assertEquals(cr.getCommandSpecific(), CommandSpecific.CLIENT); + + CommandResult cr2 = new CommandResult("", CommandSpecific.DETAILED_MEETING); + assertEquals(cr2.getCommandSpecific(), CommandSpecific.DETAILED_MEETING); + + CommandResult cr3 = new CommandResult(""); + assertNull(cr3.getCommandSpecific()); + } }