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

isNotNull() fails when an empty varargs array is verified #616

Closed
ChristianSchwarz opened this issue Aug 31, 2016 · 1 comment
Closed

isNotNull() fails when an empty varargs array is verified #616

ChristianSchwarz opened this issue Aug 31, 2016 · 1 comment
Milestone

Comments

@ChristianSchwarz
Copy link
Contributor

ChristianSchwarz commented Aug 31, 2016

Actual: When an vararg array is empty an unexpected ArgumentsAreDifferent-Exception is thrown when isNotNull() is used.
Expected: The isNotNull() check should pass cause an empty varargs array is not null.

Test case:

    mock.varargs();
    verify(mock).varargs((String[]) isNotNull()); 
@ChristianSchwarz ChristianSchwarz changed the title isNotNull() fails to verify empty varargs isNotNull() fails when an empty varargs array is verified Aug 31, 2016
@bric3 bric3 added this to the 2.2 milestone Aug 31, 2016
@ChristianSchwarz
Copy link
Contributor Author

duplicate of #567

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

No branches or pull requests

2 participants