/**
* Write a description of class TestDailyGoal here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class TestDailyGoal
{
public static void testDailyGoal() {
DailyGoal dg = new DailyGoal(15);
dg.setGoal("Eat", 1);
dg.setGoal("Sleep", 4);
dg.setGoal("Drink more water", 5);
dg.setGoal("Go to class", 11);
dg.setGoal("DO nothing", 12);
dg.setGoal("Don't sleep", 4);
System.out.println("Should print goals for days 1, 4, 5, 11, 12,"
+" and the goal for day 4 should be 'Don't sleep'");
dg.printGoals();
String lg = dg.longestGoal();
if(!lg.equals("Drink more water")) {
System.out.println("The longest goal should be 'Drink more water' but it was "
+lg);
}
}
}