Browse Source
Previously, all of the type exclude filters in spring-boot-test-autoconfigure were package-private. This prevent a user who was creating their own test slice from composing their own TypeExcludeFilter with one of Boot's. This commit updates all of the TypeExcludeFilters in the test-autoconfigure module to make them public. The intention is only to allow them to be composed with other type exclude filters when referenced in a @TypeExcludeFilters annotation. Therefore, each filter class is declared final and their constructors remain package-private. Closes gh-18746pull/18854/head
14 changed files with 30 additions and 18 deletions
9
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/client/RestClientExcludeFilter.java → spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/client/RestClientTypeExcludeFilter.java
9
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/client/RestClientExcludeFilter.java → spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/client/RestClientTypeExcludeFilter.java
Loading…
Reference in new issue