@@ -0,0 +1,1435 @@
+//@@author A0143409J%0A%0Apackage seedu.address.logic.parser;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;%0A%0Aimport java.lang.reflect.Field;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0Aimport seedu.address.logic.commands.IncorrectCommand;%0Aimport seedu.address.logic.commands.FinishCommand;%0A%0Apublic class FinishCommandParserTest %7B%0A%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A    @Test%0A    public void nullTest() throws Exception %7B%0A        thrown.expect(NullPointerException.class);%0A        FinishCommandParser.parse(null);%0A    %7D%0A%0A    @Test%0A    public void validTest() throws Exception %7B%0A        Field field = FinishCommand.class.getDeclaredField(%22targetIndex%22);%0A        field.setAccessible(true);%0A        %0A        FinishCommand finishCommand = (FinishCommand) FinishCommandParser.parse(%221%22);%0A        assertEquals(field.get(finishCommand), 1);%0A    %7D%0A%0A    @Test%0A    public void invalidTest() throws Exception %7B%0A        Field field = IncorrectCommand.class.getDeclaredField(%22feedbackToUser%22);%0A        field.setAccessible(true);%0A        %0A        IncorrectCommand incorrectCommand = (IncorrectCommand) FinishCommandParser.parse(%22+%22);%0A        assertEquals(field.get(incorrectCommand),%0A                String.format(MESSAGE_INVALID_COMMAND_FORMAT, FinishCommand.MESSAGE_USAGE));%0A    %7D%0A%7D%0A

Add FinishCommandParserTest