Added test for getting all tutors when no tutors exist.

This commit is contained in:
neviyn 2018-10-09 09:47:36 +01:00
parent 828304fccb
commit bec332f7ab

View File

@ -71,6 +71,12 @@ class ControllerTest {
assertTrue(result.contains(NameValue("Bar", 2)))
}
@Test
fun testGetAllTutors_NoTutors(){
val result = controller.getAllTutors()
assertTrue(result.isEmpty())
}
@Test
fun testAddTutor() {
val site = Site(1, "X")