added source code

This commit is contained in:
2025-05-22 11:20:52 +03:00
parent 5ffdb9f39c
commit da7193c762
15 changed files with 1144 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
package com.example;
import io.quarkus.test.junit.QuarkusIntegrationTest;
@QuarkusIntegrationTest
class ExampleIT extends ExampleTest {
// Execute the same tests but in packaged mode.
}
@@ -0,0 +1,20 @@
package com.example;
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 ExampleTest {
@Test
void testHelloEndpoint() {
given()
.when().get("/hello")
.then()
.statusCode(200)
.body(is("Hello from Quarkus REST"));
}
}