Improved contextLoads test.

This commit is contained in:
neviyn 2018-10-09 12:07:30 +01:00
parent 77dbe259f0
commit 1757fc0d9d

View File

@ -1,16 +1,22 @@
package uk.co.neviyn.observationdatabase package uk.co.neviyn.observationdatabase
import junit.framework.TestCase.assertNotNull
import org.junit.Test import org.junit.Test
import org.junit.runner.RunWith import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner import org.springframework.test.context.junit4.SpringRunner
@RunWith(SpringRunner::class) @RunWith(SpringRunner::class)
@SpringBootTest @SpringBootTest
class ObservationdatabaseApplicationTests { class ObservationDatabaseApplicationTests {
@Autowired
lateinit var controller: Controller
@Test @Test
fun contextLoads() { fun contextLoads() {
assertNotNull(controller)
} }
} }