blob: 41f96bb194cf8bc00ebbd1f01277bf30476c1a27 [file] [log] [blame]
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +01001package eu.mulk
2
3import io.quarkus.test.junit.QuarkusTest
4import io.restassured.RestAssured.given
5import org.hamcrest.CoreMatchers.`is`
6import org.junit.jupiter.api.Test
7
8@QuarkusTest
9class ExampleResourceTest {
10
11 @Test
12 def testHelloEndpoint() = {
13 given()
14 .`when`()
15 .get("/hello")
16 .`then`()
17 .statusCode(200)
18 .body(`is`("hello"))
19 }
20
21}