Excluindo testes de código apagado
This commit is contained in:
parent
cfe62b1c15
commit
0807d760b1
2 changed files with 0 additions and 44 deletions
|
@ -1,9 +0,0 @@
|
|||
package org.acme.getting.started;
|
||||
|
||||
import io.quarkus.test.junit.QuarkusIntegrationTest;
|
||||
|
||||
@QuarkusIntegrationTest
|
||||
public class GreetingResourceIT extends GreetingResourceTest {
|
||||
|
||||
// Execute the same tests but in native mode.
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
package org.acme.getting.started;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
|
||||
@QuarkusTest
|
||||
public class GreetingResourceTest {
|
||||
|
||||
@Test
|
||||
public void testHelloEndpoint() {
|
||||
given()
|
||||
.when().get("/hello")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body(is("hello"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGreetingEndpoint() {
|
||||
String uuid = UUID.randomUUID().toString();
|
||||
given()
|
||||
.pathParam("name", uuid)
|
||||
.when().get("/hello/greeting/{name}")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body(is("hello " + uuid));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue