Merge branch '3.2.x'

Closes gh-41108
This commit is contained in:
Phillip Webb 2024-06-14 11:03:13 -07:00
commit df087fad9e

View File

@ -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();
} }