LAST time, rupertrutland, /dev/urandom IS NOT a variable name generator...
This commit is contained in:
20
src/test/java/com/demo/JsonEchoTest.java
Normal file
20
src/test/java/com/demo/JsonEchoTest.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.demo;
|
||||
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
|
||||
@QuarkusTest
|
||||
class JsonEchoTest {
|
||||
@Test
|
||||
void testHelloEndpoint() {
|
||||
given()
|
||||
.when().get("/hello")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body(is("Hello from Quarkus REST"));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user