Files
backend/cart-service/src/test/java/com/drinkool/GreetingResourceTest.java
T
TakahashiNg bc7d7971d0 chore: init cart service
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 02:47:13 +00:00

20 lines
432 B
Java

package com.drinkool;
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"));
}
}