Add Configuration Test
Issue gh-11327
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user