From 1757fc0d9d5621a73bccf4c4612ca8b4cc90b978 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Tue, 9 Oct 2018 12:07:30 +0100 Subject: [PATCH] Improved contextLoads test. --- ...ionTests.kt => ObservationDatabaseApplicationTests.kt} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) rename backend/src/test/kotlin/uk/co/neviyn/observationdatabase/{ObservationdatabaseApplicationTests.kt => ObservationDatabaseApplicationTests.kt} (56%) diff --git a/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ObservationdatabaseApplicationTests.kt b/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ObservationDatabaseApplicationTests.kt similarity index 56% rename from backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ObservationdatabaseApplicationTests.kt rename to backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ObservationDatabaseApplicationTests.kt index 804f8d4..14822e1 100644 --- a/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ObservationdatabaseApplicationTests.kt +++ b/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ObservationDatabaseApplicationTests.kt @@ -1,16 +1,22 @@ package uk.co.neviyn.observationdatabase +import junit.framework.TestCase.assertNotNull import org.junit.Test import org.junit.runner.RunWith +import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.test.context.SpringBootTest import org.springframework.test.context.junit4.SpringRunner @RunWith(SpringRunner::class) @SpringBootTest -class ObservationdatabaseApplicationTests { +class ObservationDatabaseApplicationTests { + + @Autowired + lateinit var controller: Controller @Test fun contextLoads() { + assertNotNull(controller) } }