UTBotJava
UTBotJava copied to clipboard
Support more parameter annotations and types for testing `@Controller`
Description
#2447 only adds support for parameters annotated with @RequestBody and @PathVariable annotations.
Here are some more annotations that can be supported in a similar manner (sorted roughly in popularity decreasing order):
@RequestParam@Valid(depends on #2340)@RequestHeader@ModelAttribute(see also@ControllerAdvice)@CookieValue@RequestAttribute@RequestPart@SessionAttribute@MatrixVariable
Here are some more types that are treated specially by Spring (sorted roughly in popularity decreasing order):
HttpServletRequestBindingResultModelandModelMapMap<String, String>(with@RequestParamor@PathVariableannotations)Optional<T>AuthenticationHttpHeaders(with@RequestHeaderannotation)HttpSessionRedirectAttributesLocale