All Downloads are FREE. Search and download functionalities are using the official Maven repository.

config.template.flavour.quarkus-3-gradle-kts.GreetingResourceTest.ftl Maven / Gradle / Ivy

There is a newer version: 8.11.9
Show newest version
<#import '../flavour-macro.ftl' as fhm>
package test.<@fhm.toProjectPackage context=context/>;

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 GreetingResourceTest {
    @Test
    void testHelloEndpoint() {
        given()
          .when().get("/hello")
          .then()
             .statusCode(200)
             .body(is("Hello from Quarkus REST"));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy