Skip to content

Add @WithNullParam, @WithEnumParams, @WithParamsSource annotations and asEnum() accessor#8

Merged
ignaciotcrespo merged 1 commit into
masterfrom
claude/issue-7-20260401-1011
Apr 1, 2026
Merged

Add @WithNullParam, @WithEnumParams, @WithParamsSource annotations and asEnum() accessor#8
ignaciotcrespo merged 1 commit into
masterfrom
claude/issue-7-20260401-1011

Conversation

@ignaciotcrespo

Copy link
Copy Markdown
Owner

Implements all features requested in #7:

  • @WithNullParam: runs the test twice — once with a given value, once with null
  • @WithEnumParams: iterates over all constants of an enum class automatically
  • @WithParamsSource: reads parameter rows from a static String[][] provider method
  • asEnum(Class) / asEnum(String, Class): type-safe enum accessor

Full Javadocs, comprehensive unit and integration tests, and README documentation included.

Closes #7

Generated with Claude Code

…d asEnum() accessor

- @WithNullParam: runs the test twice — once with a given value, once with null
- @WithEnumParams: iterates over all constants of an enum class automatically
- @WithParamsSource: reads parameter rows from a static String[][] provider method
- asEnum(Class) / asEnum(String, Class): type-safe enum accessor returning null for null inputs
- Full Javadocs on all new public API
- Comprehensive unit and integration tests for all new features
- README updated with usage examples for each new annotation and accessor
- ParameterizedStatement.evaluate() now dispatches to per-annotation handler methods
- ParameterizedStatement constructor now accepts target instance (required for @WithParamsSource reflection)

Closes #7

Co-authored-by: Ignacio Tomas Crespo <ignaciotcrespo@users.noreply.github.com>
@ignaciotcrespo ignaciotcrespo merged commit 01bd717 into master Apr 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New annotations and type-safe accessors

1 participant