assertj / assertj/assertj-generator
Generated assertions do not preserve generic types
Open
generics
- Dominant language
- Java
- Stars
- 72
- Forks
- 47
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 2
Description
For example, if I have:
`public final Optional foo;`,
the generated assertion is:
`hasFoo(java.util.Optional foo)`
when it should be:
`hasFoo(java.util.Optional foo)`
Contributor guide
Research direction
Start by reproducing the issue with a field declared as Optional and inspect the generator path that derives assertion method parameters from field types. Done means the generated hasFoo parameter preserves the generic type, producing Optional rather than raw Optional; add or update coverage for this example if the project has a relevant generator test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100