Skip to content
Sharp

Project Structure · interview question

Why might you choose to use Mockito for testing in a CI pipeline?

Multiple choiceMediumchapter-10-curatedpremiumproject-structurecontinuous-integration
Choose one answer
Answer and explanation

Correct answer

B. To simulate and verify interactions with external dependencies

Why

Mockito is used to mock or simulate external dependencies, allowing tests to verify interactions without involving real services, making tests faster and more reliable.

Test yourself on Project Structure

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

Start free test
All Project Structure questions →