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

#2633 jacksonxml: add test coverage #2635

Merged
merged 2 commits into from May 21, 2021
Merged

#2633 jacksonxml: add test coverage #2635

merged 2 commits into from May 21, 2021

Conversation

ffang
Copy link
Contributor

@ffang ffang commented May 19, 2021

No description provided.

Copy link
Contributor

@ppalaga ppalaga left a comment

Choose a reason for hiding this comment

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

Thanks, the test coverage is highly appreciated. Except for the two minor comments inline, could you please move the Jackson XML related stuff to separate test classes (JacksonXmlTest and JacksonXmlIT) and to a separate package (e.g. org.apache.camel.quarkus.component.dataformats.jackson.xml) in the test app? That would make it easier for the future readers to understand which parts are testing which extensions.

@aldettinger
Copy link
Contributor

aldettinger commented May 20, 2021

Indeed, splitting more between jackson and jacksonxml would make the code more readable.

Concerning jackson features, I was first in the idea that it is the responsibility of quarkus-jackson to test them. But given, we already found an issue with @ JsonView, I wonder if it would make sense to test @ JsonInclude also ?

Copy link
Contributor Author

@ffang ffang left a comment

Choose a reason for hiding this comment

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

Indeed, splitting more between jackson and jacksonxml would make the code more readable.

Concerning jackson features, I was first in the idea that it is the responsibility of quarkus-jackson to test them. But given, we already found an issue with @ JsonView, I wonder if it would make sense to test @ JsonInclude also ?

I think for camel-quarkus-jackson or camel-quarkus-jacksonxml, if we cover all usecases in camel-jackson and camel-jacksonxml components, we should be good. Back to the @ JsonInclude, only NON_NULL is used in camel related components and this has been covered in the tests I added(the jacksonXmlIncludeNoNull test)

Cheers
Freeman

@ffang
Copy link
Contributor Author

ffang commented May 20, 2021

Thanks, the test coverage is highly appreciated. Except for the two minor comments inline, could you please move the Jackson XML related stuff to separate test classes (JacksonXmlTest and JacksonXmlIT) and to a separate package (e.g. org.apache.camel.quarkus.component.dataformats.jackson.xml) in the test app? That would make it easier for the future readers to understand which parts are testing which extensions.

Thanks for the feedback! Will revise accordingly.

@ffang
Copy link
Contributor Author

ffang commented May 20, 2021

pushed a new commit which I believe addressed all feedback.
Thanks guys!

@ffang ffang merged commit 5f94515 into apache:main May 21, 2021
@ffang ffang deleted the 2633 branch May 21, 2021 14:30
jamesnetherton pushed a commit to jboss-fuse/camel-quarkus that referenced this pull request Jun 7, 2021
* apache#2633 jacksonxml: add test coverage

* address feedback
jamesnetherton pushed a commit to jboss-fuse/camel-quarkus that referenced this pull request Jun 7, 2021
* apache#2633 jacksonxml: add test coverage

* address feedback
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.

None yet

4 participants