Nice mocks in both EasyMock and Mockito are a good thing to start with if you do not want to define behaviour for everything and if you do not want to restrict calls on that mock.
But for me they have one big flaw: They always return
null if the return type of the method is
Object or anything inheriting from
I am wondering if there is something in one or both of the frameworks that returns
Optional.empty() for methods that return
Collections.emptyList() for methods that return
List<?> and so on...
I wasn't yet able to find anything like this.