Skip to content

Commit 3a631cb

Browse files
authored
Add hint for multithreading in UnfinishedStubbingException (#3636)
Fixes #3635
1 parent 7764992 commit 3a631cb

File tree

1 file changed

+1
-1
lines changed
  • mockito-core/src/main/java/org/mockito/internal/exceptions

1 file changed

+1
-1
lines changed

mockito-core/src/main/java/org/mockito/internal/exceptions/Reporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static MockitoException unfinishedStubbing(Location location) {
9898
"Hints:",
9999
" 1. missing thenReturn()",
100100
" 2. you are trying to stub a final method, which is not supported",
101-
" 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed",
101+
" 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed, possibly on another thread",
102102
""));
103103
}
104104

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy