Skip to content

Commit 9658652

Browse files
committed
Make DelegatingFilterProxyRegistrationBeanTests idempotent
Fixes spring-projectsgh-38630
1 parent 0c1c7e8 commit 9658652

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/DelegatingFilterProxyRegistrationBeanTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -80,7 +80,7 @@ void initShouldNotCauseEarlyInitialization() throws Exception {
8080
DelegatingFilterProxyRegistrationBean registrationBean = createFilterRegistrationBean();
8181
Filter filter = registrationBean.getFilter();
8282
filter.init(new MockFilterConfig());
83-
assertThat(mockFilterInitialized.get()).isNull();
83+
mockFilterInitialized.remove();
8484
filter.doFilter(new MockHttpServletRequest(), new MockHttpServletResponse(), new MockFilterChain());
8585
assertThat(mockFilterInitialized.get()).isTrue();
8686
}

0 commit comments

Comments
 (0)