You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
457 B
21 lines
457 B
package com.redhat.pctsec; |
|
|
|
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 from RESTEasy Reactive")); |
|
} |
|
|
|
} |