@@ -0,0 +1,897 @@
+package main.habitivity;%0A%0A%0Aimport android.test.ActivityInstrumentationTestCase2;%0A%0Aimport main.habitivity.habits.Habit;%0Aimport main.habitivity.habits.HabitRepository;%0Aimport main.habitivity.services.WhichHabitService;%0A%0Apublic class HabitRepositoryTests extends ActivityInstrumentationTestCase2 %7B%0A%0A    public HabitRepositoryTests() %7B%0A        super(main.habitivity.HabitivityMain.class);%0A    %7D%0A%0A    public void testHabits() %7B%0A%0A        HabitRepository repo = new HabitRepository(new WhichHabitService());%0A        Habit habit = new Habit();%0A%0A        repo.addHabit(habit);%0A%0A        assertEquals(repo.getHabit(habit.getId()), habit);%0A        assertEquals(repo.getHabits().get(0), habit);%0A%0A        repo.updateHabit(repo.getHabit(habit.getId()));%0A        assertEquals(repo.getHabit(habit.getId()), habit);%0A%0A%0A        repo.removeHabit(habit.getId());%0A%0A        assertTrue(repo.getHabits().isEmpty());%0A    %7D%0A%7D%0A

add repo_tests