UTBotJava
UTBotJava copied to clipboard
Support annotated arguments with the `Date` type in Spring tests for Controllers
Description
Although @RequestHeader annotation is supported after #2504, there is a scenario that we can not deal with. Actually, the same problem happens for @CookieValue.
Expected behavior
Integration tests can be generated properly for the following syntax of the annotation
@GetMapping("/default")
public ResponseEntity<String> evaluateDefaultHeaderValue(@RequestHeader(value = "optional-header") Date optionalHeader) {
return new ResponseEntity<String>(
String.format("Optional Header is %s", optionalHeader), HttpStatus.OK);
}