-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add @SpringConversion converter
#4
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
Conversation
c3a4c44 to
c8268bf
Compare
abe254a to
480bb56
Compare
3ee89d8 to
7eb3857
Compare
|
@copilot rebase this PR and update the user guide with this new feature |
99aa185 to
db785c4
Compare
db785c4 to
7dd9d84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for Spring Framework type conversion to JUnit parameterized tests through a new @SpringConversion annotation.
- Introduces a new
@SpringConversionannotation that delegates to Spring'sDefaultConversionService - Adds comprehensive test coverage and documentation for various conversion scenarios
- Configures the dependency as optional to avoid forcing Spring on all users
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/io/github/scordio/junit/converters/SpringConversion.java | New annotation for Spring-based argument conversion |
| src/main/java/io/github/scordio/junit/converters/SpringArgumentConverter.java | Converter implementation delegating to Spring's ConversionService |
| src/main/java/module-info.java | Adds static optional dependency on spring.core module |
| src/test/java/module-info.java | Adds test module dependency on spring.core |
| src/test/java/io/github/scordio/tests/junit/converters/SpringConversionIntegrationTests.java | Integration tests for supported conversion scenarios |
| src/demo/java/io/github/scordio/SpringConversionDemo.java | Demo code showing annotation usage |
| pom.xml | Adds optional spring-core dependency and enforcer plugin configuration |
| docs/converters/spring-conversion.md | Documentation with usage examples and conversion tables |
| docs/index.md | Updates converter list to include SpringConversion |
| mkdocs.yml | Adds navigation entry and enables TOC integration |
| docs/converters/base64.md | Removes TOC hiding configuration |
| docs/converters/hex.md | Removes TOC hiding configuration |
| .github/workflows/main.yml | Adds CI job to test against Spring Framework 6.2.12 and 7.0.0-RC3 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/main/java/io/github/scordio/junit/converters/SpringArgumentConverter.java
Outdated
Show resolved
Hide resolved
7dd9d84 to
f799233
Compare
No description provided.