Lies mit dem Standard- oder Partner-Abo Unterhaltungsliteratur und alle Fachbücher aus unserem Katalog.
Mockito is an open source testing framework for Java that automates unit tests for use in test-driven development (TDD) or behavior-driven development (BDD), decoupling test code from the system under test by eliminating the expect-run-verify pattern. It lets you write beautiful tests with a clean and simple API.
Instant Mockito contains plenty of real-life examples on how to unit test your code. It shows you how to use this testing framework and explains best practices on how to use it effectively.
Instant Mockito helps you break each significant method into a set of practical examples. It will clarify all the concepts of unit testing and Mockito.
You will learn how to properly capture and verify arguments passed into your stubbed methods. We will also take a look at verifying an order and returning custom answers on the stubs. If you want to take advantage of using the Mockito framework’s API to tame your code base, then this is the book for you.
You will learn everything you need to know to unit test your code in a clear, readable, and high quality manner.
Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. This is a standard, tutorial-based guide using plenty of examples for illustration.
Instant Mockito is ideal for developers new to unit testing, who are looking to get to know how to create high quality tests using Mockito. It’s assumed that you will have some experience in Java already.
Verlag:
Packt Publishing
Veröffentlicht:
2013
Druckseiten:
ca. 40
Sprache:
English
Medientyp:
eBook