diff --git a/src/test/java/se/sawano/spring/boot/springsecurity/demo/CommonSecurityAssertions.java b/src/test/java/se/sawano/spring/boot/springsecurity/demo/CommonSecurityAssertions.java index 149288c..fcff580 100644 --- a/src/test/java/se/sawano/spring/boot/springsecurity/demo/CommonSecurityAssertions.java +++ b/src/test/java/se/sawano/spring/boot/springsecurity/demo/CommonSecurityAssertions.java @@ -56,7 +56,9 @@ public ExpectedHeader(final String headerName) { public void hasValue(final String value) { final String actual = headerProvider.apply(headerName); - assertEquals("Expected header '" + headerName + "' to have value: '" + value + "', but was: '" + actual + "'.", actual, value); + assertEquals("Expected header '" + headerName + "' to have value: '" + value + "', but was: '" + actual + "'.", + value, + actual); } } }