Skip to content

Commit fa9cb82

Browse files
Merge branch '5.8.x'
2 parents a9ece43 + 3d0be9b commit fa9cb82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/provider/service/web/Saml2MetadataFilterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public void doFilterWhenCharacterEncodingThenEncodeSpecialCharactersCorrectly()
164164
this.filter.setMetadataFilename(testMetadataFilename);
165165
this.filter.doFilter(this.request, this.response, this.chain);
166166
assertThat(this.response.getCharacterEncoding()).isEqualTo(StandardCharsets.UTF_8.name());
167-
assertThat(new String(this.response.getContentAsByteArray())).isEqualTo(generatedMetadata);
167+
assertThat(this.response.getContentAsString(StandardCharsets.UTF_8)).isEqualTo(generatedMetadata);
168168
}
169169

170170
@Test

0 commit comments

Comments
 (0)