Skip to content

test: add boundary test for null array in ArrayUtils.contains - #1786

Closed
Rakesh40520 wants to merge 1 commit into
apache:masterfrom
Rakesh40520:test-arrayutils-null-check
Closed

test: add boundary test for null array in ArrayUtils.contains#1786
Rakesh40520 wants to merge 1 commit into
apache:masterfrom
Rakesh40520:test-arrayutils-null-check

Conversation

@Rakesh40520

Copy link
Copy Markdown

Summary

Adds a JUnit unit test testContainsNullArrayBoundary in ArrayUtilsTest to verify that ArrayUtils.contains((Object[]) null, ...) safely returns false without throwing a NullPointerException.

Motivation

Ensures boundary condition coverage for null array parameters in ArrayUtils.

@garydgregory

garydgregory commented Sep 8, 2026

Copy link
Copy Markdown
Member

Closing, duplicates testContains(). @Rakesh40520 Please check existing tests before you push to avoid wasting a maintainer's time.

@Rakesh40520

Copy link
Copy Markdown
Author

Thank you for the feedback! My apologies for missing the existing test cases . I will thoroughly check existing test coverage before submitting in the future

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.

2 participants