Mockitospecific
Mockitospecific is a term that has emerged in discussions surrounding the popular Java mocking framework, Mockito. It refers to the practice of writing tests that are tightly coupled to Mockito's internal implementation details rather than focusing on the observable behavior of the code being tested. This can occur when developers write mocks in a way that relies on specific Mockito APIs or behaviors that are not part of the core contract of the class or interface being mocked.
When tests are too Mockitospecific, they become brittle. This means that refactoring the code under test, or
A common cause of Mockitospecific tests is an over-reliance on verifying method calls rather than verifying
To avoid Mockitospecific tests, developers are encouraged to favor testing the public API and observable behavior