Cargando…

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

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Shah, Deep
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2013.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • 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).