Skip to content

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

Open
@tepa46

Description

@tepa46

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

    }

Metadata

Metadata

Assignees

Labels

comp-springIssue is related to Spring projects supportctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions