You are on page 1of 1

Assignment: Mocking using Mockito

Mockito is a powerful framework you can use to professionalize your back end testing. You can mock
interfaces and validate methods have been executed.

Difficulty: ☆☆★★★

Learning objectives:

• Using a mocking framework to improve your back end testing

Estimated time required: 120 minutes

Step 1: Execute the tutorials on Baeldung


Check out the tutorials on https://www.baeldung.com/mockito-series. Make sure you have
understood the concept of the When/Then and Verify flows.

Final step: Implement Mockito as part of your test workflow


Use the applied knowledge to let go of your stub “FakeDatabase” and replace it with a more
professional and easier to maintain a mocking framework.

You might also like