From bec332f7ab276bc6657c7db8498102c295ad9b1c Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Tue, 9 Oct 2018 09:47:36 +0100 Subject: [PATCH] Added test for getting all tutors when no tutors exist. --- .../uk/co/neviyn/observationdatabase/ControllerTest.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ControllerTest.kt b/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ControllerTest.kt index 152de08..82150d7 100644 --- a/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ControllerTest.kt +++ b/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ControllerTest.kt @@ -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")