package bakatxt.test;

import static org.junit.Assert.*;

import org.junit.AfterClass;
import org.junit.Test;

public class BakaProcessorTest {

    @AfterClass
    public static void tearDownAfterClass() throws Exception {
    }

    @Test
    public void test() {
        fail("Not yet implemented");
    }

}

@@ -51,9 +51,20 @@
 ert.
-*
+assertEquals
 ;%0A%0Ai
@@ -79,26 +79,22 @@
 g.junit.
-AfterClass
+Before
 ;%0Aimport
@@ -115,205 +115,1190 @@
 t;%0A%0A
-public class BakaProcessorTest %7B%0A%0A    @AfterClass%0A    public static void tearDownAfterClass() throws Exception %7B%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        fail(%22Not yet implemented%22
+import bakatxt.core.BakaParser;%0A%0Apublic class BakaProcessorTest %7B%0A    private BakaParser _parser;%0A%0A    enum CommandType %7B%0A        ADD, DELETE, EDIT, EXIT, DISPLAY, UNDO, REDO, DEFAULT%0A    %7D%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        _parser = new BakaParser();%0A    %7D%0A%0A    @Test%0A    public void testCommandType() %7B%0A        String input = %22add lunch%22;%0A        String command = _parser.getCommand(input);%0A        CommandType commandType = CommandType.valueOf(command);%0A        assertEquals(%22ADD%22, commandType);%0A    %7D%0A%0A    @Test%0A    public void testCommandType2() %7B%0A        String input = %22delete 3%22;%0A        String command = _parser.getCommand(input);%0A        CommandType commandType = CommandType.valueOf(command);%0A        assertEquals(%22DELETE%22, commandType);%0A    %7D%0A%0A    @Test%0A    public void testWrongCommandType() %7B%0A        String input = %22remove 3%22;%0A        String command = _parser.getCommand(input);%0A        CommandType commandType;%0A        try %7B%0A            commandType = CommandType.valueOf(command);%0A        %7D catch (IllegalArgumentException e) %7B%0A            commandType = CommandType.DEFAULT;%0A        %7D%0A        assertEquals(%22DEFAULT%22, commandType
 );%0A
+%0A
     %7D%0A
-%0A
 %7D%0A

Add JUnit test cases for command type under BakaProcessor