ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Mockito - Do mocks need all methods to be declared? - Java Community | Help. Code. Learn.
JC|HCL
Java Community | Help. Code. Learn.
โข
2d ago
โข
4 replies
Haiku
Mockito - Do mocks need all methods to be declared?
๐ ๏ธ
(Unit) Testing
When mocking an interface with Mockito
, are the default methods used for anything not defined with
when
when
?
For some reason
, despite having default methods returning
true
true
, my mocked instances are returning
false
false
.
Recent Announcements
Similar Threads
Mockito: mockStatic is underfined
JC|HCL
Java Community | Help. Code. Learn. / java-help
16mo ago