O'Reilly logo

Instant Mockito by Marcin Grzejszczak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Top 8 features you need to know about

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required