Paweł Chudzik 9/22/2019

Answers in mockito

Read Original

This technical article details the various built-in answer strategies available in the Mockito mocking library, such as RETURNS_DEFAULTS, CALLS_REAL_METHODS, and RETURNS_SMART_NULLS. It provides code examples and discusses when to use these techniques, primarily in the context of testing legacy code or improving test design.

Answers in mockito

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week