Add some debugging information to know which test cases might have failed

This commit is contained in:
Nanne Baars
2021-03-28 17:41:19 +02:00
committed by Nanne Baars
parent ce6e4d2090
commit 935871c39a
3 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package org.owasp.webgoat;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.hamcrest.CoreMatchers;
import org.hamcrest.MatcherAssert;
import org.junit.jupiter.api.AfterEach;
@ -18,6 +19,7 @@ import java.util.UUID;
import static io.restassured.RestAssured.given;
@Slf4j
public abstract class IntegrationTest {
protected static int WG_PORT = 8080;
@ -262,6 +264,7 @@ public abstract class IntegrationTest {
}
public void checkAssignmentWithGet(String url, Map<String, ?> params, boolean expectedResult) {
log.info("Checking assignment for: {}", url);
MatcherAssert.assertThat(
RestAssured.given()
.when()