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

Further work on #1385: try moving test classes to different package #1388

Merged
merged 7 commits into from
Jan 13, 2025

Conversation

cowtowncoder
Copy link
Member

Doing this is required to properly separate jackson-core packages (actual streaming package) and test support classes published/exported for other components' tests to use.
(no package splitting with JPMS)

@cowtowncoder cowtowncoder marked this pull request as ready for review January 13, 2025 01:41
final static int MAX_CHAR_BUFFER_SIZE = 32000; // use segments beyond
final static int MIN_BYTE_BUFFER_SIZE = 24;
final static int MAX_BYTE_BUFFER_SIZE = 32000; // use segments beyond
public final static int MIN_CHAR_BUFFER_SIZE = 16;
Copy link
Member Author

Choose a reason for hiding this comment

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

Not ideal, but none of visibility increases should be problematic per se.
Should minimize testing based on of such constants of course but first things first.

@cowtowncoder
Copy link
Member Author

Ok: things work at this end so let's go ahead and see if we can make jackson-databind work too.

@cowtowncoder cowtowncoder merged commit 7a9cad8 into master Jan 13, 2025
6 checks passed
@cowtowncoder cowtowncoder deleted the tatu/3.0/1385-refactor-test-base-2 branch January 13, 2025 18:43
@cowtowncoder
Copy link
Member Author

cowtowncoder commented Jan 13, 2025

@JooHyukKim This is a big refactoring: due to module (JPMS) limitations, need to basically move test classes under different Java package (tools.jackson.core.unittest), similarly test classes to share (tools.jackson.core.testutil). Only latter is exported/published for other components to use.

Note that this change is only needed in jackson-core: when not publishing test-jar it is ok to "split" packages across implementation and test classes.

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.

1 participant