mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
use random ports;
tests for the Daemon
This commit is contained in:
parent
aca3d2bd04
commit
fcf3ff2bf1
7 changed files with 102 additions and 26 deletions
|
|
@ -0,0 +1,20 @@
|
|||
package de.kosit.validationtool.daemon;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import io.restassured.http.ContentType;
|
||||
|
||||
/**
|
||||
* Checks the health endpoint.
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
public class HealthHandlerIT extends BaseIT {
|
||||
|
||||
@Test
|
||||
public void checkHealth() {
|
||||
given().when().get("/server/health").then().statusCode(200).and().contentType(ContentType.XML);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue