Skip to content

Commit

Permalink
Basit test
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Feb 23, 2024
1 parent 677728b commit 533b6e6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 28 deletions.
46 changes: 46 additions & 0 deletions src/test/java/org/fugerit/java/demo/BasicApiTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package org.fugerit.java.demo;

import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;

import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.containsString;

@QuarkusTest
class BasicApiTest {
@Test
void testDocumentLoadAll() {
given()
.when().get("/document/load/all")
.then()
.statusCode(200)
.body(containsString("Silmarillion"));
}

@Test
void testExample01LoadAll() {
given()
.when().get("/example01/load/all")
.then()
.statusCode(200)
.body(containsString("field3"));
}

@Test
void testMappedtableLoadAll() {
given()
.when().get("/mappedtable/load/all")
.then()
.statusCode(200)
.body(containsString("Mapped"));
}
@Test
void testPersonLoadAll() {
given()
.when().get("/person/load/all")
.then()
.statusCode(200)
.body(containsString("Miriel"));
}

}
8 changes: 0 additions & 8 deletions src/test/java/org/fugerit/java/demo/GreetingResourceIT.java

This file was deleted.

20 changes: 0 additions & 20 deletions src/test/java/org/fugerit/java/demo/GreetingResourceTest.java

This file was deleted.

0 comments on commit 533b6e6

Please sign in to comment.