Skip to content
Sharp

Build Tools · interview question

Which of the following is a key advantage of using Mockito in unit tests?

Multiple choiceMediumchapter-10-curatedpremiumbuild-toolsbuild-lifecycle
Choose one answer
Answer and explanation

Correct answer

B. Running tests faster by avoiding real dependency execution

Why

Mockito allows developers to mock dependencies, which means tests can run without executing real dependencies, making them faster and more reliable by focusing purely on the unit under test.

Test yourself on Build Tools

A free test with instant, explained results. No account needed.

Start free test
All Build Tools questions →