From dac011db78983e5b149dadeb88ae45485e3bc29c Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Tue, 20 Oct 2020 22:24:24 +0200 Subject: [PATCH] fix failing test (order) --- .../java/org/owasp/webgoat/xxe/BlindSendFileAssignmentTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webgoat-lessons/xxe/src/test/java/org/owasp/webgoat/xxe/BlindSendFileAssignmentTest.java b/webgoat-lessons/xxe/src/test/java/org/owasp/webgoat/xxe/BlindSendFileAssignmentTest.java index 04c3e4ea8..67729c4e8 100644 --- a/webgoat-lessons/xxe/src/test/java/org/owasp/webgoat/xxe/BlindSendFileAssignmentTest.java +++ b/webgoat-lessons/xxe/src/test/java/org/owasp/webgoat/xxe/BlindSendFileAssignmentTest.java @@ -81,7 +81,7 @@ public class BlindSendFileAssignmentTest extends LessonTest { mockMvc.perform(MockMvcRequestBuilders.post("/xxe/blind") .content(String.format(content, targetFile.toString()))) .andExpect(status().isOk()); - assertThat(comments.getComments().iterator().next().getText()).isEqualTo("Nice try, you need to send the file to WebWolf"); + assertThat(comments.getComments()).extracting(c -> c.getText()).containsAnyOf("Nice try, you need to send the file to WebWolf"); } @Test