package seedu.address.logic.commands;

import static org.junit.Assert.assertEquals;

import java.util.HashSet;
import java.util.Set;

import org.junit.Test;

public class CommandFormatterTest {

    @Test
    public void singleListTest() throws Exception {
        String formatHeader = "List all tasks";
        String list1 = "list1";
        Set<String> keywords = new HashSet<>();
        keywords.add(list1);

        String result = CommandFormatter.listFormatter(formatHeader, keywords);
        assertEquals(result, "List all tasks in list list1");
    }
}

@@ -1,8 +1,30 @@
+//@@ author A0143409J%0A
 package 
@@ -577,11 +577,917 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void undoFriendlyMesageTest() throws Exception %7B%0A        String formatHeader = %22Hey%22;%0A        String command = %22rubbish%22;%0A%0A        String result = CommandFormatter.undoFormatter(formatHeader, command);%0A        assertEquals(result, %22Hey%5CnYou can undo the rubbish by typing 'undo'%22);%0A    %7D%0A%0A    @Test%0A    public void undoMesageTest() throws Exception %7B%0A        ClearCommand clearCommand = new ClearCommand();%0A%0A        String result = CommandFormatter.undoMessageFormatter(UndoCommand.MESSAGE_SUCCESS, clearCommand);%0A        assertEquals(result, %22Undo clear command successfully.%22);%0A    %7D%0A%0A    @Test%0A    public void redoMesageTest() throws Exception %7B%0A        ClearCommand clearCommand = new ClearCommand();%0A%0A        String result = CommandFormatter.undoMessageFormatter(RedoCommand.MESSAGE_SUCCESS, clearCommand);%0A        assertEquals(result, %22Redo clear command successfully.%22);%0A    %7D
 %0A%7D%0A

Add testcases for CommandFormatter