
MOCKITO COOKBOOK
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Book DescriptionThis is a focused guide with lots of practical recipes with presentations of business issues and presentation of the whole test of the system. This book shows the use of Mockito's popular unit testing frameworks such as JUnit, PowerMock, TestNG, and so on. If you are a software developer with no testing experience (especially with Mockito) and you want to start using Mockito in the most efficient way then this book is for you. This book assumes that you have a good knowledge level and understanding of Java-based unit testing frameworks.What you will learn
Create beautiful tests using Mockito
Create mocks and spies in a number of ways
Implement best practices to perform tests with Mockito
Extend Mockito with other popular Javabased unit testing frameworks such as JUnit and PowerMock
Stub behavior of mocks and spies
Verify test doubles with Mockito
Write good tests using Mockito
Integrate Mockito with DI systems
Compare Mockito to other mocking frameworks
Verify the behavior of your system under test
Who this book is for
More details
Other editions
Additional editions

Person
Marcin Grzejszczak is an experienced Java programmer. He is enthusiastic about clean coding and good design. He has contributed to several open source projects (Drools, Moco, Mockito, Spock, and so on) and to Groovy core. He is the co-organizer of the Warsaw Groovy User Group. He is a member of the Most Valuable Blogger program at DZone and Java Code Geeks. Marcin is the author of Instant Mockito, Packt Publishing, and Drools Refcard at DZone. You can visit his blog, http://toomuchcoding.blogspot.com, or his home page, http://www.marcin.grzejszczak.pl. Or, you can follow him on Twitter at http://twitter.com/MGrzejszczak.
Content
Getting Started With Mockito
Creating mocks
Creating spies
Stubbing behaviour of mocks
Stubbing behaviour of spies
Verifying test doubles
Verifying with arg matchers
Refactoring with Mockito
Mockito based tools
Mocking libraries comparison
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.