Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tepa46 opened this issue Aug 14, 2023 · 0 comments
Assignees
Labels
comp-spring Issue is related to Spring projects support ctg-enhancement New feature, improvement or change request

Comments

@tepa46
Copy link
Collaborator

tepa46 commented Aug 14, 2023

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 tepa46 added ctg-enhancement New feature, improvement or change request comp-spring Issue is related to Spring projects support labels Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-spring Issue is related to Spring projects support ctg-enhancement New feature, improvement or change request
Projects
Status: Todo
Development

No branches or pull requests

2 participants