Fixed EpcQrCodeResourceTest

This commit is contained in:
dankito 2023-04-11 00:46:06 +02:00
parent c92dc50f3f
commit 2bd8fb6e06
2 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,6 @@
package net.codinux.banking.epcqrcode.rest package net.codinux.banking.epcqrcode.rest
import io.quarkus.test.junit.NativeImageTest import io.quarkus.test.junit.QuarkusIntegrationTest
@QuarkusIntegrationTest
@NativeImageTest
class NativeEpcQrCodeResourceIT : EpcQrCodeResourceTest() class NativeEpcQrCodeResourceIT : EpcQrCodeResourceTest()

View File

@ -2,7 +2,7 @@ package net.codinux.banking.epcqrcode.rest
import io.quarkus.test.junit.QuarkusTest import io.quarkus.test.junit.QuarkusTest
import io.restassured.RestAssured 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.hamcrest.CoreMatchers
import org.junit.jupiter.api.Test import org.junit.jupiter.api.Test
@ -14,8 +14,8 @@ class EpcQrCodeResourceTest {
fun createEpcQrCode() { fun createEpcQrCode() {
RestAssured.given() RestAssured.given()
.header("content-type", "application/json") .header("content-type", "application/json")
.body(GenerateEpcQrCodeRequestDto()) .body(GenerateEpcQrCodeRequest("Liebe", "DE01234567890123456789"))
.`when`().post("/qrcode") .`when`().post("/epcqrcode/v1")
.then() .then()
.statusCode(200) .statusCode(200)
.body(CoreMatchers.containsString("qrCodeBase64Encoded")) .body(CoreMatchers.containsString("qrCodeBase64Encoded"))