@@ -0,0 +1,1290 @@
+package com.example.habitrack;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Calendar;%0A%0A/**%0A * Created by sshussai on 11/4/17.%0A */%0A%0Apublic class HabitTypeControllerTest extends TestCase %7B%0A%0A    // Properties of a test habit type%0A    private String title;%0A    private String reason;%0A    private Calendar startDate;%0A    private ArrayList%3CInteger%3E schedule;%0A%0A    // Test Habit type%0A    HabitType ht;%0A%0A    // Function that runs before any tests%0A    protected void setUp()%7B%0A        this.title = %22testTitle1%22;%0A        this.reason = %22testReason1%22;%0A        this.startDate = Calendar.getInstance();%0A        this.schedule = new ArrayList%3CInteger%3E();%0A        this.schedule.add(Calendar.SUNDAY);%0A        this.schedule.add(Calendar.MONDAY);%0A    %7D%0A%0A    public void testCreateHabit()%7B%0A        HabitTypeController htc = new HabitTypeController();%0A        htc.createNewHabitType(title, reason, startDate, schedule);%0A        ht = HabitTypeStateManager.getHTStateManager().getHabitType(1);%0A        assertEquals(title, ht.getTitle());%0A        assertEquals(reason, ht.getReason());%0A        assertTrue(startDate.equals(ht.getStartDate()));%0A        assertTrue(schedule.equals(ht.getSchedule()));%0A    %7D%0A%0A    // Fucntion that runs after all tests%0A    protected void tearDown()%7B%7D%0A%0A%0A%7D

add base test case for adding htcTest