Corrected test name

This commit is contained in:
neviyn 2019-03-05 11:04:48 +00:00
parent 7abd2c7a90
commit 9ae1544b22

View File

@ -129,7 +129,7 @@ class GroupSessionControllerTest {
} }
@Test(expected = ResponseStatusException::class) @Test(expected = ResponseStatusException::class)
fun testCompleteSession_NonMatchingTitles() { fun testSubmit_NonMatchingTitles() {
val site = Site(1, "Test site") val site = Site(1, "Test site")
Mockito.doReturn(Optional.of(site)).`when`(siteRepository).findById(1) Mockito.doReturn(Optional.of(site)).`when`(siteRepository).findById(1)
Mockito.doReturn(listOf(Tutor(1, "Mr X", site))).`when`(tutorRepository).findAllById(listOf(1)) Mockito.doReturn(listOf(Tutor(1, "Mr X", site))).`when`(tutorRepository).findAllById(listOf(1))