Cargando…

Mockito Cookbook.

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

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Grzejszczak, Marcin
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Packt Publishing, 2014.
Temas:
Acceso en línea:Texto completo

MARC

LEADER 00000cam a2200000Ma 4500
001 EBOOKCENTRAL_ocn882611110
003 OCoLC
005 20240329122006.0
006 m o d
007 cr |n|||||||||
008 140704s2014 xx o 000 0 eng d
040 |a IDEBK  |b eng  |e pn  |c IDEBK  |d EBLCP  |d MHW  |d OCLCQ  |d FEM  |d S9I  |d OCLCO  |d OCLCF  |d ZCU  |d XFH  |d MERUC  |d OCLCQ  |d ICG  |d AU@  |d OCLCQ  |d DKC  |d OCLCQ  |d OCLCO  |d OCLCQ  |d OCLCO  |d OCLCL 
019 |a 968035918  |a 969067995  |a 994475594 
020 |a 1306898706  |q (ebk) 
020 |a 9781306898706  |q (ebk) 
020 |a 9781783982752 
020 |a 1783982756 
020 |a 1783982748 
020 |a 9781783982745 
029 1 |a AU@  |b 000062552827 
029 1 |a DEBBG  |b BV043610414 
029 1 |a AU@  |b 000067094237 
035 |a (OCoLC)882611110  |z (OCoLC)968035918  |z (OCoLC)969067995  |z (OCoLC)994475594 
037 |a 621121  |b MIL 
050 4 |a T55.4-60.8 
082 0 4 |a 006 
049 |a UAMI 
100 1 |a Grzejszczak, Marcin. 
245 1 0 |a Mockito Cookbook. 
260 |b Packt Publishing,  |c 2014. 
300 |a 1 online resource 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
347 |a text file  |2 rda 
588 0 |a Print version record. 
520 |a This 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. 
505 0 |a Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Mockito; Introduction; Adding Mockito to a project's classpath; Getting started with Mockito for JUnit; Getting started with Mockito for TestNG; Mockito best practices -- test behavior not implementation; Adding Mockito hints to exception messages (JUnit) (Experimental); Adding additional Mockito warnings to your tests (JUnit) (Experimental); Chapter 2: Creating Mocks; Introduction; Creating mocks in code; Creating mocks with annotations. 
505 8 |a Creating mocks with a different default answerCreating mocks with different default answers with annotations; Creating mocks with custom configuration; Creating mocks of final classes with PowerMock; Creating mocks of enums with PowerMock; Chapter 3: Creating Spies and Partial Mocks; Introduction; Creating spies in code; Creating spies with custom configuration; Creating spies using annotations; Creating partial mocks; Creating partial mocks of final classes with delegatesTo(); Creating spies of final classes with PowerMock; Chapter 4: Stubbing Behavior of Mocks; Introduction. 
505 8 |a Using argument matchers for stubbingStubbing methods that return values; Stubbing methods so that they throw exceptions; Stubbing methods so that they return custom answers; Stubbing methods so that they call real methods; Stubbing void methods; Stubbing void methods so that they throw exceptions; Stubbing void methods so that they return custom answers; Stubbing void methods so that they call real methods; Stubbing final methods with PowerMock; Stubbing static methods with PowerMock; Stubbing object instantiation using PowerMock; Chapter 5: Stubbing Behavior of Spies; Introduction. 
505 8 |a Stubbing methods that return valuesStubbing methods so that they throw exceptions; Stubbing methods so that they return custom answers; Stubbing void methods; Stubbing void methods so that they throw exceptions; Stubbing void methods so that they return custom answers; Stubbing final methods with PowerMock; Chapter 6: Verifying Test Doubles; Introduction; Verifying the method invocation count with times(); Verifying the method invocation count with atLeast(); Verifying the method invocation count with atMost(); Verifying that interactions never happened. 
505 8 |a Verifying that interactions stopped happeningVerifying the order of interactions; Verifying interactions and ignoring stubbed methods; Verifying the method invocation within time; Chapter 7: Verifying Behavior with Object Matchers; Introduction; Using Hamcrest matchers for assertions; Creating custom Hamcrest matchers; Using Hamcrest matchers for stubbing and verification; Using AssertJ for assertions; Creating custom AssertJ assertions; Capturing and asserting the argument; Chapter 8: Refactoring with Mockito; Introduction; Removing the problems with instance creation. 
546 |a English. 
590 |a ProQuest Ebook Central  |b Ebook Central Academic Complete 
650 0 |a Computer interfaces. 
650 0 |a User interfaces (Computer systems) 
650 6 |a Interfaces (Informatique) 
650 6 |a Interfaces utilisateurs (Informatique) 
650 7 |a Computer interfaces  |2 fast 
650 7 |a User interfaces (Computer systems)  |2 fast 
758 |i has work:  |a Mockito cookbook (Text)  |1 https://id.oclc.org/worldcat/entity/E39PD3y7JMp4FhqGV99D3pDh3P  |4 https://id.oclc.org/worldcat/ontology/hasWork 
776 0 8 |i Print version:  |z 9781306898706 
856 4 0 |u https://ebookcentral.uam.elogim.com/lib/uam-ebooks/detail.action?docID=1719576  |z Texto completo 
938 |a ProQuest Ebook Central  |b EBLB  |n EBL1719576 
938 |a ProQuest MyiLibrary Digital eBook Collection  |b IDEB  |n cis28548821 
994 |a 92  |b IZTAP