mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Merge branch '3.2.x'
Closes gh-41108
This commit is contained in:
commit
df087fad9e
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2023 the original author or authors.
|
* Copyright 2012-2024 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -80,7 +80,7 @@ class DelegatingFilterProxyRegistrationBeanTests extends AbstractFilterRegistrat
|
|||||||
DelegatingFilterProxyRegistrationBean registrationBean = createFilterRegistrationBean();
|
DelegatingFilterProxyRegistrationBean registrationBean = createFilterRegistrationBean();
|
||||||
Filter filter = registrationBean.getFilter();
|
Filter filter = registrationBean.getFilter();
|
||||||
filter.init(new MockFilterConfig());
|
filter.init(new MockFilterConfig());
|
||||||
assertThat(mockFilterInitialized.get()).isNull();
|
mockFilterInitialized.remove();
|
||||||
filter.doFilter(new MockHttpServletRequest(), new MockHttpServletResponse(), new MockFilterChain());
|
filter.doFilter(new MockHttpServletRequest(), new MockHttpServletResponse(), new MockFilterChain());
|
||||||
assertThat(mockFilterInitialized.get()).isTrue();
|
assertThat(mockFilterInitialized.get()).isTrue();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user