First init
This commit is contained in:
21
src/test/java/com/covas/GreetingResourceTest.java
Normal file
21
src/test/java/com/covas/GreetingResourceTest.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.covas;
|
||||
|
||||
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
|
||||
public class GreetingResourceTest {
|
||||
|
||||
@Test
|
||||
public void testHelloEndpoint() {
|
||||
given()
|
||||
.when().get("/hello")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body(is("Hello RESTEasy"));
|
||||
}
|
||||
|
||||
}
|
9
src/test/java/com/covas/NativeGreetingResourceIT.java
Normal file
9
src/test/java/com/covas/NativeGreetingResourceIT.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package com.covas;
|
||||
|
||||
import io.quarkus.test.junit.NativeImageTest;
|
||||
|
||||
@NativeImageTest
|
||||
public class NativeGreetingResourceIT extends GreetingResourceTest {
|
||||
|
||||
// Execute the same tests but in native mode.
|
||||
}
|
Reference in New Issue
Block a user