Chapter 12. Updating the functional test to validate configuration changes

Before you test the functionality of your application, you must update the functional test to reflect the changes you made to the endpoint of your application. The following procedure shows how you can update your testHelloEndpoint method on the Quarkus config-quickstart project.


  1. Open the file.
  2. Update the content of the testHelloEndpoint method:

    package org.acme.config;
    import io.quarkus.test.junit.QuarkusTest;
    import org.junit.jupiter.api.Test;
    import static io.restassured.RestAssured.given;
    import static;
    public class GreetingResourceTest {
        public void testHelloEndpoint() {
                 .body(is("hello quarkus!")); // Modified line