Chargement en cours…

Instant Mock Testing with PowerMock.

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. A concise guide full of step-by-step recipes, to teach you how you can use PowerMock to unit test code. If you are a beginner who would like to learn how to use PowerMock, this is the per...

Description complète

Détails bibliographiques
Cote:Libro Electrónico
Auteur principal: Shah, Deep
Format: Électronique eBook
Langue:Inglés
Publié: Birmingham, UK : Packt Publishing, 2013.
Sujets:
Accès en ligne:Texto completo
Table des matières:
  • Cover; Copyright; Credits; About the Author; About the reviewer; www.PacktPub.com; Table of Contents; Preface; Instant Mock testing with Powermock; Saying Hello World! (Simple); Getting and installing PowerMock (Simple); Mocking static methods (Simple); Verifying method invocation (Simple); Mocking final classes or methods (Simple); Mocking constructors (Medium); Understanding argument matchers (Medium); Understanding the Answer interface (Advanced); Partial mocking with spies (Advanced); Mocking private methods (Medium); Breaking the encapsulation (Advanced).