package jfditests.parsertests;

import jfdi.logic.commands.AddTaskCommand;
import jfdi.logic.interfaces.Command;
import jfdi.parser.commandparsers.AbstractCommandParser;
import jfdi.parser.commandparsers.AddCommandParser;

import org.junit.Assert;
import org.junit.Test;
import org.testng.annotations.BeforeClass;

public class AddCommandParserTest {
    AbstractCommandParser parser = AddCommandParser.getInstance();

    @BeforeClass
    public void init() {
        parser = AddCommandParser.getInstance();
    }

    @Test
    public void testValidAddInput() {
        Command c = parser.build("add poop");
        Assert.assertNotNull(c);
        Assert.assertTrue(c instanceof AddTaskCommand);
    }

    @Test
    public void testValidAddInputWithoutIdentifier() {
        Command c = parser.build("poop ");
        Assert.assertNotNull(c);
        Assert.assertTrue(c instanceof AddTaskCommand);
    }

}

@@ -566,33 +566,42 @@
         Command 
-c
+addCommand
  = parser.build(
@@ -634,33 +634,42 @@
 t.assertNotNull(
-c
+addCommand
 );%0A        Asser
@@ -673,33 +673,42 @@
 sert.assertTrue(
-c
+addCommand
  instanceof AddT
@@ -808,17 +808,26 @@
 Command 
-c
+addCommand
  = parse
@@ -873,17 +873,26 @@
 NotNull(
-c
+addCommand
 );%0A     
@@ -912,17 +912,26 @@
 ertTrue(
-c
+addCommand
  instanc

Fix checkstyle issues