src/test/java/seedu/address/logic/commands/CommandTestUtil.java
/**
     * Executes the given {@code command}, confirms that <br>
     * - a {@code CommandException} is thrown <br>
     * - the CommandException message matches {@code expectedMessage} <br>
     * - My Fitness Buddy, filtered day list and selected day in {@code actualModel} remain unchanged
     */
Executes the given  command, confirms that 
- a  CommandException is thrown 
- the CommandException message matches  expectedMessage 
- My Fitness Buddy, filtered day list and selected day in  actualModel remain unchanged
Executes the given command confirms that - a CommandException is thrown - the CommandException message matches expectedMessage - My Fitness Buddy filtered day list and selected day in actualModel remain unchanged
public static void assertCommandFailure(Command command, Model actualModel, String expectedMessage) {
        MyFitnessBuddy myFitnessBuddy = new MyFitnessBuddy(actualModel.getMyFitnessBuddy());
        List<Day> expectedFilteredList = new ArrayList<>(actualModel.getFilteredDayList());
        assertEquals(myFitnessBuddy, actualModel.getMyFitnessBuddy());
        assertEquals(expectedFilteredList, actualModel.getFilteredDayList());
    }
public static void assertCommandFailure ( Command command , Model actualModel , String expectedMessage ) { MyFitnessBuddy myFitnessBuddy = new MyFitnessBuddy ( actualModel . getMyFitnessBuddy ( ) ) ; List < Day > expectedFilteredList = new ArrayList < > ( actualModel . getFilteredDayList ( ) ) ; assertEquals ( myFitnessBuddy , actualModel . getMyFitnessBuddy ( ) ) ; assertEquals ( expectedFilteredList , actualModel . getFilteredDayList ( ) ) ; }
Executes the given {@code command}, confirms that <br>
 - a {@code CommandException} is thrown <br>
 - the CommandException message matches {@code expectedMessage} <br>
 - My Fitness Buddy, filtered day list and selected day in {@code actualModel} remain unchanged
Executes the given { @code command } confirms that <br > - a { @code CommandException } is thrown <br > - the CommandException message matches { @code expectedMessage } <br > - My Fitness Buddy filtered day list and selected day in { @code actualModel } remain unchanged
// we are unable to defensively copy the model for comparison later, so we can // only do so by copying its components. //assertThrows(CommandException.class, expectedMessage, () -> command.execute(actualModel));