Skip to content

Instantly share code, notes, and snippets.

@IT-Berater
Created October 27, 2020 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IT-Berater/9fd10132e65a93e5312bf72f8704b243 to your computer and use it in GitHub Desktop.
Save IT-Berater/9fd10132e65a93e5312bf72f8704b243 to your computer and use it in GitHub Desktop.
package de.wenzlaff;
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
@QuarkusTest
public class Co2AmpelResourceTest {
@Test
public void testHelloEndpoint() {
given().when().get("/v1/rest/co2").then().statusCode(200).body(is("CO2 Wert: 0"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment