Added test for getting all tutors when no tutors exist.
This commit is contained in:
parent
828304fccb
commit
bec332f7ab
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user