UTBotJava icon indicating copy to clipboard operation
UTBotJava copied to clipboard

Support annotated arguments with the `Date` type in Spring tests for Controllers

Open tepa46 opened this issue 3 years ago • 0 comments

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);

    }

tepa46 avatar Aug 14 '23 14:08 tepa46