Skip to content

fix(QTDI-3114): remove jackson test dependency#1246

Merged
undx merged 1 commit into
masterfrom
ouf/QTDI-3114-remove-jackson-test-dep
Jun 25, 2026
Merged

fix(QTDI-3114): remove jackson test dependency#1246
undx merged 1 commit into
masterfrom
ouf/QTDI-3114-remove-jackson-test-dep

Conversation

@undx

@undx undx commented Jun 25, 2026

Copy link
Copy Markdown
Member

Requirements

https://qlik-dev.atlassian.net/browse/QTDI-3114

  • Any code change adding any logic MUST be tested through a unit test executed with the default build
  • Any API addition MUST be done with a documentation update if relevant

Why this PR is needed?

What does this PR adds (design/code thoughts)?

AI generated code

https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code

  • [] this PR has been written with the help of GitHub Copilot or another generative AI tool

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 removes Jackson usage from component-server tests and ensures the module no longer pulls Jackson core artifacts transitively in the test classpath, aligning tests with the JSON-B (Johnzon) stack used elsewhere in the server.

Changes:

  • Removed Jackson imports/usages from unit tests and switched deserialization to JSON-B.
  • Simplified a test method signature by dropping an unnecessary JsonProcessingException.
  • Added a Maven exclusion to prevent com.fasterxml.jackson.core:* from being pulled via the component-runtime-beam test dependency.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
component-server-parent/component-server/src/test/java/org/talend/sdk/component/server/service/jcache/FrontCacheResolverTest.java Removes Jackson exception dependency from the test method signature.
component-server-parent/component-server/src/test/java/org/talend/sdk/component/server/front/SchemaTest.java Replaces Jackson deserialization with JSON-B to avoid Jackson test dependency.
component-server-parent/component-server/src/test/java/org/talend/sdk/component/server/front/EntryTest.java Replaces Jackson deserialization with JSON-B to avoid Jackson test dependency.
component-server-parent/component-server/pom.xml Excludes com.fasterxml.jackson.core:* from the component-runtime-beam test dependency transitive graph.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonar-rnd

sonar-rnd Bot commented Jun 25, 2026

Copy link
Copy Markdown

@undx undx requested a review from ozhelezniak-talend June 25, 2026 12:30

@ozhelezniak-talend ozhelezniak-talend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm
locall run is OK

@undx undx merged commit 4339569 into master Jun 25, 2026
11 checks passed
@undx undx deleted the ouf/QTDI-3114-remove-jackson-test-dep branch June 25, 2026 13:09
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.

3 participants