Include WebFilter beans in WebFluxTest slice

See gh-17601
This commit is contained in:
Dmytro Nosan
2019-07-22 11:59:18 +03:00
committed by Madhura Bhave
parent 9f69b61d49
commit 9d052bbe5e
2 changed files with 20 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.reactive.config.WebFluxConfigurer;
import org.springframework.web.server.WebExceptionHandler;
import org.springframework.web.server.WebFilter;
/**
* {@link TypeExcludeFilter} for {@link WebFluxTest @WebFluxTest}.
@@ -51,6 +52,7 @@ class WebFluxTypeExcludeFilter extends StandardAnnotationCustomizableTypeExclude
includes.add(Converter.class);
includes.add(GenericConverter.class);
includes.add(WebExceptionHandler.class);
includes.add(WebFilter.class);
DEFAULT_INCLUDES = Collections.unmodifiableSet(includes);
}