Fixed EpcQrCodeResourceTest
This commit is contained in:
parent
c92dc50f3f
commit
2bd8fb6e06
|
@ -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()
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue