From 2bd8fb6e0607d7381451c71315a1b90e862b67b5 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 11 Apr 2023 00:46:06 +0200 Subject: [PATCH] Fixed EpcQrCodeResourceTest --- .../banking/epcqrcode/rest/NativeEpcQrCodeResourceIT.kt | 5 ++--- .../codinux/banking/epcqrcode/rest/EpcQrCodeResourceTest.kt | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/EpcQrCodeRest/src/native-test/kotlin/net/codinux/banking/epcqrcode/rest/NativeEpcQrCodeResourceIT.kt b/EpcQrCodeRest/src/native-test/kotlin/net/codinux/banking/epcqrcode/rest/NativeEpcQrCodeResourceIT.kt index 2ce0b3b..fd7a692 100644 --- a/EpcQrCodeRest/src/native-test/kotlin/net/codinux/banking/epcqrcode/rest/NativeEpcQrCodeResourceIT.kt +++ b/EpcQrCodeRest/src/native-test/kotlin/net/codinux/banking/epcqrcode/rest/NativeEpcQrCodeResourceIT.kt @@ -1,7 +1,6 @@ package net.codinux.banking.epcqrcode.rest -import io.quarkus.test.junit.NativeImageTest +import io.quarkus.test.junit.QuarkusIntegrationTest - -@NativeImageTest +@QuarkusIntegrationTest class NativeEpcQrCodeResourceIT : EpcQrCodeResourceTest() \ No newline at end of file diff --git a/EpcQrCodeRest/src/test/kotlin/net/codinux/banking/epcqrcode/rest/EpcQrCodeResourceTest.kt b/EpcQrCodeRest/src/test/kotlin/net/codinux/banking/epcqrcode/rest/EpcQrCodeResourceTest.kt index db42910..cac15ab 100644 --- a/EpcQrCodeRest/src/test/kotlin/net/codinux/banking/epcqrcode/rest/EpcQrCodeResourceTest.kt +++ b/EpcQrCodeRest/src/test/kotlin/net/codinux/banking/epcqrcode/rest/EpcQrCodeResourceTest.kt @@ -2,7 +2,7 @@ package net.codinux.banking.epcqrcode.rest import io.quarkus.test.junit.QuarkusTest import io.restassured.RestAssured -import net.codinux.banking.epcqrcode.rest.dto.GenerateEpcQrCodeRequestDto +import net.codinux.banking.epcqrcode.rest.dto.GenerateEpcQrCodeRequest import org.hamcrest.CoreMatchers import org.junit.jupiter.api.Test @@ -14,8 +14,8 @@ class EpcQrCodeResourceTest { fun createEpcQrCode() { RestAssured.given() .header("content-type", "application/json") - .body(GenerateEpcQrCodeRequestDto()) - .`when`().post("/qrcode") + .body(GenerateEpcQrCodeRequest("Liebe", "DE01234567890123456789")) + .`when`().post("/epcqrcode/v1") .then() .statusCode(200) .body(CoreMatchers.containsString("qrCodeBase64Encoded"))