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

Fixes #3281 : Add native method to exception message of MissingMethodI… #3283

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -123,7 +123,7 @@ public static MockitoException missingMethodInvocation() {
" when(mock.getArticles()).thenReturn(articles);",
"",
"Also, this error might show up because:",
"1. you stub either of: final/private/equals()/hashCode() methods.",
"1. you stub either of: final/private/native/equals()/hashCode() methods.",
" Those methods *cannot* be stubbed/verified.",
" " + NON_PUBLIC_PARENT,
"2. inside when() you don't call method on mock but on some other object.",
Expand Down
Expand Up @@ -108,7 +108,7 @@ public void shouldReportMissingMethodInvocationWhenStubbing() {
"For example:",
" when(mock.getArticles()).thenReturn(articles);",
"Also, this error might show up because:",
"1. you stub either of: final/private/equals()/hashCode() methods.",
"1. you stub either of: final/private/native/equals()/hashCode() methods.",
" Those methods *cannot* be stubbed/verified.",
" Mocking methods declared on non-public parent classes is not supported.",
"2. inside when() you don't call method on mock but on some other object.");
Expand Down