Package it.tidalwave.util.test
Class MoreAnswers
- java.lang.Object
-
- it.tidalwave.util.test.MoreAnswers
-
public class MoreAnswers extends java.lang.ObjectA repository of reusableAnswers for Mockito.- Since:
- 3.2-ALPHA-8
- Author:
- Fabrizio Giudici
-
-
Field Summary
Fields Modifier and Type Field Description static org.mockito.stubbing.Answer<?>CALLS_DEFAULT_METHODSAnAnswerthat calls default methods of an interface.
-
Constructor Summary
Constructors Constructor Description MoreAnswers()
-
-
-
Field Detail
-
CALLS_DEFAULT_METHODS
public static final org.mockito.stubbing.Answer<?> CALLS_DEFAULT_METHODS
AnAnswerthat calls default methods of an interface. To be used as:Foo foo = mock(Foo.class, MoreAnswers.CALLS_DEFAULT_METNODS);. Mockito'sAnswers.CALLS_REAL_METHODSactually behaves the same when used with interfaces, but it has been designed for mixed mocking, which is a practice that is supposed to be used only with corner cases an legacy stuff.
-
-