@@ -0,0 +1,994 @@
+package se.kits.gakusei.controller;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport se.kits.gakusei.content.model.Course;%0Aimport se.kits.gakusei.content.repository.CourseRepository;%0A%0Aimport static org.junit.Assert.*;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class CourseControllerTest %7B%0A%0A    @InjectMocks%0A    private CourseController courseController;%0A%0A    @Mock%0A    private CourseRepository courseRepository;%0A%0A    private Course testCourse;%0A%0A    @Before%0A    public void setUp()%7B%0A        MockitoAnnotations.initMocks(this);%0A    %7D%0A%0A    @Test%0A    public void getAllCourses() throws Exception %7B%0A    %7D%0A%0A    @Test%0A    public void getCourseByID() throws Exception %7B%0A    %7D%0A%0A    @Test%0A    public void getCourseByName() throws Exception %7B%0A    %7D%0A%0A    @Test%0A    public void getCourseByCode() throws Exception %7B%0A    %7D%0A%0A%7D

Add test class for CourseController