As you start to use Mockito, you will see that there is a wide variety of things that you can do with it. This section will teach you all about the most commonly performed tasks, and most commonly used features of Mockito.
Let us assume that all the import statements are present for the following examples, and also we have a
Waiter who can perform the various tasks. He has to communicate with the
KitchenService to retrieve meals that he noted down on a piece of paper as
Meals objects, which can be vegetarian or non-vegetarian. In order to start getting orders, he needs to check with
AdministrativeService that the power in the restaurant is turned on. The default implementation of the latter service is such ...