mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
introduce docsify; refactor the daemon
This commit is contained in:
parent
7dc62012a6
commit
91e4d79953
12 changed files with 1038 additions and 26 deletions
|
|
@ -17,15 +17,12 @@ import io.restassured.http.ContentType;
|
|||
* Testet the Daemon-Mode input , Methoden , Output Content-Type and the success case
|
||||
*
|
||||
* @author Roula Antoun
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
public class CheckHandlerIT extends BaseIT {
|
||||
|
||||
|
||||
private static final String APPLICATION_XML = "application/xml";
|
||||
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void makeSureThatSuccessTest() throws IOException {
|
||||
try ( final InputStream io = Simple.SIMPLE_VALID.toURL().openStream() ) {
|
||||
|
|
@ -50,15 +47,7 @@ public class CheckHandlerIT extends BaseIT {
|
|||
return IOUtils.toByteArray(io);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void methodNotAllowedTest() {
|
||||
given().when().get("/").then().statusCode(405);
|
||||
given().when().put("/").then().statusCode(405);
|
||||
given().when().patch("/").then().statusCode(405);
|
||||
given().when().delete("/").then().statusCode(405);
|
||||
given().when().head("/").then().statusCode(405);
|
||||
given().when().options("/").then().statusCode(405);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void xmlResultTest() throws IOException {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue