package se.kits.gakusei.controller;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import se.kits.gakusei.content.model.Course;
import se.kits.gakusei.content.repository.CourseRepository;
import se.kits.gakusei.test_tools.TestTools;

import static org.junit.Assert.*;

@RunWith(MockitoJUnitRunner.class)
public class CourseControllerTest {

    @InjectMocks
    private CourseController courseController;

    @Mock
    private CourseRepository courseRepository;

    private Course testCourse;

    @Before
    public void setUp(){
        MockitoAnnotations.initMocks(this);

        testCourse = TestTools.generateCourse();
    }

    @Test
    public void getAllCourses() throws Exception {
    }

    @Test
    public void getCourseByID() throws Exception {
        Mockito.when(courseRepository.findOne(testCourse.getId())).thenReturn(testCourse);

        ResponseEntity<Course> re = courseController.getCourseByID(testCourse.getId());

        assertEquals(HttpStatus.OK, re.getStatusCode());
        assertEquals(testCourse, re.getBody());
    }

    @Test
    public void getCourseByName() throws Exception {
    }

    @Test
    public void getCourseByCode() throws Exception {
    }

}
@@ -951,17 +951,21 @@
 ic void 
-g
+testG
 etAllCou
@@ -968,16 +968,18 @@
 lCourses
+OK
 () throw
@@ -1017,33 +1017,37 @@
     public void 
-g
+testG
 etCourseByID() t
@@ -1042,16 +1042,18 @@
 urseByID
+OK
 () throw
@@ -1377,33 +1377,36 @@
     public void 
-g
+tetG
 etCourseByName()
@@ -1403,16 +1403,18 @@
 seByName
+OK
 () throw
@@ -1460,17 +1460,21 @@
 ic void 
-g
+tetsG
 etCourse
@@ -1479,16 +1479,18 @@
 seByCode
+OK
 () throw

Change test names to follow convention