diff --git a/test/java/planmysem/logic/parser/ParserManagerTest.java b/test/java/planmysem/logic/parser/ParserManagerTest.java index 4975ff5a9..7d3717933 100644 --- a/test/java/planmysem/logic/parser/ParserManagerTest.java +++ b/test/java/planmysem/logic/parser/ParserManagerTest.java @@ -20,6 +20,7 @@ import planmysem.logic.commands.HelpCommand; import planmysem.logic.commands.ImportCommand; import planmysem.logic.commands.ListCommand; +import planmysem.logic.commands.ViewCommand; import planmysem.model.recurrence.Recurrence; import planmysem.model.slot.Slot; @@ -177,6 +178,17 @@ public void parseCommand_export() throws Exception { public void parseCommand_import() throws Exception { assertTrue(parser.parseCommand(ImportCommand.COMMAND_WORD + " /test/data/ImportExportTest/importTest.ics\"") instanceof ImportCommand); } + + @Test + public void parseCommand_view() throws Exception { + //assertTrue(parser.parseCommand(ViewCommand.COMMAND_WORD) instanceof ViewCommand); + ViewCommand command = (ViewCommand) parser.parseCommand(ViewCommand.COMMAND_WORD + " month"); + assertEquals(new ViewCommand(new String[]{"month"}), command); + + ViewCommand commandShort = (ViewCommand) parser.parseCommand(ViewCommand.COMMAND_WORD_SHORT + " month"); + assertEquals(new ViewCommand(new String[]{"month"}), commandShort); + } + // // @Test // public void parseCommand_find() throws Exception {