From fff9ae48291a600e8288884eac1c35362cf704ae Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 12 Jan 2020 16:50:11 +0100 Subject: Move everything to below eu.mulk.mulkcms2. Change-Id: Ib9fc9638fb95bb9c31198bee89a5a24eff8d0b74 --- src/main/scala/eu/mulk/ExampleResource.scala | 12 ------------ .../scala/eu/mulk/mulkcms2/ExampleResource.scala | 12 ++++++++++++ .../scala/eu/mulk/NativeExampleResourceIT.scala | 6 ------ .../eu/mulk/mulkcms2/NativeExampleResourceIT.scala | 6 ++++++ src/test/scala/eu/mulk/ExampleResourceTest.scala | 21 --------------------- .../eu/mulk/mulkcms2/ExampleResourceTest.scala | 21 +++++++++++++++++++++ 6 files changed, 39 insertions(+), 39 deletions(-) delete mode 100644 src/main/scala/eu/mulk/ExampleResource.scala create mode 100644 src/main/scala/eu/mulk/mulkcms2/ExampleResource.scala delete mode 100644 src/native-test/scala/eu/mulk/NativeExampleResourceIT.scala create mode 100644 src/native-test/scala/eu/mulk/mulkcms2/NativeExampleResourceIT.scala delete mode 100644 src/test/scala/eu/mulk/ExampleResourceTest.scala create mode 100644 src/test/scala/eu/mulk/mulkcms2/ExampleResourceTest.scala (limited to 'src') diff --git a/src/main/scala/eu/mulk/ExampleResource.scala b/src/main/scala/eu/mulk/ExampleResource.scala deleted file mode 100644 index a68b2a7..0000000 --- a/src/main/scala/eu/mulk/ExampleResource.scala +++ /dev/null @@ -1,12 +0,0 @@ -package eu.mulk - -import javax.ws.rs.{GET, Path, Produces} -import javax.ws.rs.core.MediaType - -@Path("/hello") -class ExampleResource { - - @GET - @Produces(Array[String](MediaType.TEXT_PLAIN)) - def hello() = "hello!" -} diff --git a/src/main/scala/eu/mulk/mulkcms2/ExampleResource.scala b/src/main/scala/eu/mulk/mulkcms2/ExampleResource.scala new file mode 100644 index 0000000..6a2db1a --- /dev/null +++ b/src/main/scala/eu/mulk/mulkcms2/ExampleResource.scala @@ -0,0 +1,12 @@ +package eu.mulk.mulkcms2 + +import javax.ws.rs.core.MediaType +import javax.ws.rs.{GET, Path, Produces} + +@Path("/hello") +class ExampleResource { + + @GET + @Produces(Array[String](MediaType.TEXT_PLAIN)) + def hello() = "hello!" +} diff --git a/src/native-test/scala/eu/mulk/NativeExampleResourceIT.scala b/src/native-test/scala/eu/mulk/NativeExampleResourceIT.scala deleted file mode 100644 index f4a3e01..0000000 --- a/src/native-test/scala/eu/mulk/NativeExampleResourceIT.scala +++ /dev/null @@ -1,6 +0,0 @@ -package eu.mulk - -import io.quarkus.test.junit.NativeImageTest - -@NativeImageTest -class NativeExampleResourceIT extends ExampleResourceTest diff --git a/src/native-test/scala/eu/mulk/mulkcms2/NativeExampleResourceIT.scala b/src/native-test/scala/eu/mulk/mulkcms2/NativeExampleResourceIT.scala new file mode 100644 index 0000000..9ad5288 --- /dev/null +++ b/src/native-test/scala/eu/mulk/mulkcms2/NativeExampleResourceIT.scala @@ -0,0 +1,6 @@ +package eu.mulk.mulkcms2 + +import io.quarkus.test.junit.NativeImageTest + +@NativeImageTest +class NativeExampleResourceIT extends ExampleResourceTest diff --git a/src/test/scala/eu/mulk/ExampleResourceTest.scala b/src/test/scala/eu/mulk/ExampleResourceTest.scala deleted file mode 100644 index 41f96bb..0000000 --- a/src/test/scala/eu/mulk/ExampleResourceTest.scala +++ /dev/null @@ -1,21 +0,0 @@ -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")) - } - -} diff --git a/src/test/scala/eu/mulk/mulkcms2/ExampleResourceTest.scala b/src/test/scala/eu/mulk/mulkcms2/ExampleResourceTest.scala new file mode 100644 index 0000000..9b86f27 --- /dev/null +++ b/src/test/scala/eu/mulk/mulkcms2/ExampleResourceTest.scala @@ -0,0 +1,21 @@ +package eu.mulk.mulkcms2 + +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