@@ -0,0 +1,1165 @@
+%0Apackage wepa.wepa.domain;%0A%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0Aimport wepa.wepa.repository.ExerciseRepository;%0Aimport wepa.wepa.repository.WeeklyExerciseRepository;%0A%0A@RunWith(SpringRunner.class)%0A@SpringBootTest%0Apublic class ExerciseTest %7B%0A    %0A    @Autowired%0A    WeeklyExerciseRepository weRepo;%0A    %0A    @Autowired%0A    ExerciseRepository exRepo;%0A    %0A    @Test%0A    public void test1()%7B%0A        WeeklyExercise we = new WeeklyExercise();%0A        we.setWeek(1);%0A        we = weRepo.save(we);%0A        Exercise ex = new Exercise();%0A        ex.setDescription(%22hello test%22);%0A        ex.setWeek(we);%0A        ex = exRepo.save(ex);%0A        %0A        Exercise retrieved = exRepo.findOne(ex.getId());%0A        assertEquals(%22hello test%22, retrieved.getDescription());%0A        assertEquals(1, retrieved.getWeek().getWeek());%0A    %7D%0A%7D%0A

test exercise