test for gui handler

This commit is contained in:
Andreas Penski 2020-05-11 09:07:40 +02:00
parent b02126c1cc
commit b164d71199
2 changed files with 20 additions and 3 deletions

View file

@ -0,0 +1,16 @@
package de.kosit.validationtool.daemon;
import io.restassured.http.ContentType;
import org.junit.Test;
import static io.restassured.RestAssured.given;
public class GuiHandlerIT extends BaseIT {
@Test
public void checkGui() {
given().when().get("/").then().statusCode(200).and().contentType(ContentType.HTML);
given().when().get("/README.md").then().statusCode(200).and().contentType("text/markdown");
given().when().get("/unknown.md").then().statusCode(404).and().contentType(ContentType.TEXT);
}
}