Add Configuration Test

Issue gh-11327
This commit is contained in:
Josh Cummings
2022-07-07 14:42:07 -06:00
parent d27d431bbc
commit c9a3d21b9b
2 changed files with 41 additions and 0 deletions

View File

@@ -548,6 +548,14 @@ public class MiscHttpConfigTests {
assertThat(baos.toString()).contains("[WARN]");
}
@Test
public void configureWhenProtectingLoginPageAuthorizationManagerThenWarningLogged() {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
redirectLogsTo(baos, DefaultFilterChainValidator.class);
this.spring.configLocations(xml("ProtectedLoginPageAuthorizationManager")).autowire();
assertThat(baos.toString()).contains("[WARN]");
}
@Test
public void configureWhenUsingDisableUrlRewritingThenRedirectIsNotEncodedByResponse()
throws IOException, ServletException {