Mockito cookbook : over 65 recipes to get you up and running with unit testing using Mockito /
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...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Pub.,
2014.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
MARC
LEADER | 00000cam a2200000 a 4500 | ||
---|---|---|---|
001 | EBSCO_ocn883661847 | ||
003 | OCoLC | ||
005 | 20231017213018.0 | ||
006 | m o d | ||
007 | cr cnu---unuuu | ||
008 | 140715s2014 enka o 001 0 eng d | ||
040 | |a UMI |b eng |e pn |c UMI |d E7B |d N$T |d DEBBG |d DEBSZ |d COO |d YDXCP |d OCLCQ |d OCLCF |d OCLCQ |d K6U |d AGLDB |d OCLCQ |d COCUF |d ICA |d CNNOR |d OCLCQ |d CCO |d PIFFA |d FVL |d U3W |d REB |d D6H |d STF |d OCLCQ |d VTS |d CEF |d NLE |d INT |d VT2 |d OCLCQ |d WYU |d G3B |d TKN |d OCLCQ |d AU@ |d M8D |d UKAHL |d HS0 |d OCLCO |d QGK |d OCLCQ |d OCLCO | ||
019 | |a 907252266 |a 1259057131 | ||
020 | |a 9781783982752 |q (electronic bk.) | ||
020 | |a 1783982756 |q (electronic bk.) | ||
020 | |a 1783982748 | ||
020 | |a 9781783982745 | ||
020 | |z 9781783982745 | ||
029 | 1 | |a DEBBG |b BV042031214 | |
029 | 1 | |a DEBSZ |b 414188039 | |
029 | 1 | |a DEBSZ |b 484725904 | |
029 | 1 | |a GBVCP |b 882839128 | |
035 | |a (OCoLC)883661847 |z (OCoLC)907252266 |z (OCoLC)1259057131 | ||
050 | 4 | |a QA76.76.T48 |b G79 2013 | |
072 | 7 | |a COM |x 000000 |2 bisacsh | |
082 | 0 | 4 | |a 006 |2 23 |
049 | |a UAMI | ||
100 | 1 | |a Grzejszczak, Marcin. | |
245 | 1 | 0 | |a Mockito cookbook : |b over 65 recipes to get you up and running with unit testing using Mockito / |c Marcin Grzejszczak. |
260 | |a Birmingham, UK : |b Packt Pub., |c 2014. | ||
300 | |a 1 online resource (1 volume) : |b illustrations | ||
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 | ||
588 | 0 | |a Online resource; title from cover (Safari, viewed July 9, 2014). | |
500 | |a "Quick answers to common problems." | ||
500 | |a Includes index. | ||
588 | 0 | |a Print version record. | |
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 | |
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. | ||
546 | |a English. | ||
590 | |a eBooks on EBSCOhost |b EBSCO eBook Subscription Academic Collection - Worldwide | ||
590 | |a O'Reilly |b O'Reilly Online Learning: Academic/Public Library Edition | ||
650 | 0 | |a Computer software |x Testing. | |
650 | 0 | |a Application software |x Testing. | |
650 | 0 | |a Java (Computer program language) | |
650 | 0 | |a Open source software. | |
650 | 6 | |a Java (Langage de programmation) | |
650 | 6 | |a Logiciels libres. | |
650 | 7 | |a COMPUTERS |x General. |2 bisacsh | |
650 | 7 | |a Application software |x Testing |2 fast | |
650 | 7 | |a Computer software |x Testing |2 fast | |
650 | 7 | |a Java (Computer program language) |2 fast | |
650 | 7 | |a Open source software |2 fast | |
776 | 0 | 8 | |i Print version: |a Grzejszczak, Marcin. |t Mockito cookbook : over 65 recipes to get you up and running with unit testing using Mockito. |d Birmingham, [England] : Packt Publishing, ©2014 |h iii, 268 pages |z 9781783982745 |
856 | 4 | 0 | |u https://ebsco.uam.elogim.com/login.aspx?direct=true&scope=site&db=nlebk&AN=805412 |z Texto completo |
856 | 4 | 0 | |u https://learning.oreilly.com/library/view/~/9781783982745/?ar |z Texto completo |
938 | |a Askews and Holts Library Services |b ASKH |n AH26843921 | ||
938 | |a ebrary |b EBRY |n ebr10887665 | ||
938 | |a EBSCOhost |b EBSC |n 805412 | ||
938 | |a YBP Library Services |b YANK |n 11951093 | ||
994 | |a 92 |b IZTAP |