Prev Next

Testing / Mockito Interview Questions

Explain mock() method in Mockito.

The Mock() method is used to create and inject the mocked instances. It gives you boilerplate assignments to work with these instances. The other way of creating the instances is using the @mock annotations.

More Related questions...

Show more question and Answers...


Comments & Discussions