mirror of
https://github.com/ysoftdevs/oauth-playground-server.git
synced 2026-02-25 20:05:49 +01:00
remove generated GreetingResource
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
package com.ysoft.geecon;
|
||||
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
@Path("/hello")
|
||||
public class GreetingResource {
|
||||
|
||||
@GET
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public String hello() {
|
||||
return "Hello from RESTEasy Reactive";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package com.ysoft.geecon;
|
||||
|
||||
import io.quarkus.test.junit.QuarkusIntegrationTest;
|
||||
|
||||
@QuarkusIntegrationTest
|
||||
public class GreetingResourceIT extends GreetingResourceTest {
|
||||
// Execute the same tests but in packaged mode.
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package com.ysoft.geecon;
|
||||
|
||||
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"));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user