1.

What Values Do Mocks Return By Default?

Answer»

In order to be transparent and UNOBTRUSIVE all Mockito mocks by default return 'nice' values. For example: zeros, falseys, empty COLLECTIONS or nulls. REFER to javadocs about stubbing to see EXACTLY what values are returned by default.

In order to be transparent and unobtrusive all Mockito mocks by default return 'nice' values. For example: zeros, falseys, empty collections or nulls. Refer to javadocs about stubbing to see exactly what values are returned by default.



Discussion

No Comment Found