fix: challenge 7 (#1433)

This commit is contained in:
Nanne Baars
2023-02-22 22:55:48 +01:00
committed by GitHub
parent 61dac201f0
commit e50986a098
5 changed files with 92 additions and 17 deletions

View File

@ -11,6 +11,7 @@ import org.hamcrest.CoreMatchers;
import org.hamcrest.MatcherAssert;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.springframework.http.HttpStatus;
public abstract class IntegrationTest {
@ -252,4 +253,14 @@ public abstract class IntegrationTest {
.getBody()
.asString();
}
public void cleanMailbox() {
RestAssured.given()
.when()
.relaxedHTTPSValidation()
.cookie("WEBWOLFSESSION", getWebWolfCookie())
.delete(webWolfUrl("/mail"))
.then()
.statusCode(HttpStatus.ACCEPTED.value());
}
}