Improved contextLoads test.
This commit is contained in:
parent
77dbe259f0
commit
1757fc0d9d
@ -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)
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user