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

Json plugin: do json type resolution during prepare stage #2420

Merged
merged 1 commit into from Jun 30, 2023

Conversation

stevenschlansker
Copy link
Member

for arguments and column mappers

This allows type lookup and object reader / writer to be reused

@stevenschlansker stevenschlansker requested a review from a team June 29, 2023 22:10
@stevenschlansker stevenschlansker force-pushed the json-bind-type branch 3 times, most recently from f76f54f to 24f8f90 Compare June 29, 2023 23:01
json/src/main/java/org/jdbi/v3/json/JsonMapper.java Outdated Show resolved Hide resolved

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I applaud this. :-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rather dislike that mocks make your tests depend on exactly what methods are called in what order, rather than the actual behavior of the implementation...

…ts and column mappers

This allows type lookup and object reader / writer to be reused
@sonarcloud
Copy link

sonarcloud bot commented Jun 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@stevenschlansker stevenschlansker merged commit 8364511 into master Jun 30, 2023
34 of 36 checks passed
@stevenschlansker stevenschlansker deleted the json-bind-type branch June 30, 2023 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants