From 4c5847bffd0401e62a3f2beaeba8c0cb887359ce Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 12 Jan 2020 15:42:02 +0100 Subject: Import fresh Quarkus project. Change-Id: I05fa5dd499cdca04adee9afbef9f83b3afd8fe0f --- src/test/scala/eu/mulk/ExampleResourceTest.scala | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/scala/eu/mulk/ExampleResourceTest.scala (limited to 'src/test/scala') diff --git a/src/test/scala/eu/mulk/ExampleResourceTest.scala b/src/test/scala/eu/mulk/ExampleResourceTest.scala new file mode 100644 index 0000000..41f96bb --- /dev/null +++ b/src/test/scala/eu/mulk/ExampleResourceTest.scala @@ -0,0 +1,21 @@ +package eu.mulk + +import io.quarkus.test.junit.QuarkusTest +import io.restassured.RestAssured.given +import org.hamcrest.CoreMatchers.`is` +import org.junit.jupiter.api.Test + +@QuarkusTest +class ExampleResourceTest { + + @Test + def testHelloEndpoint() = { + given() + .`when`() + .get("/hello") + .`then`() + .statusCode(200) + .body(`is`("hello")) + } + +} -- cgit v1.2.3