Mockito Cookbook. (Record no. 37365)
[ view plain ]
000 -LEADER | |
---|---|
fixed length control field | 11238nam a22005053i 4500 |
001 - CONTROL NUMBER | |
control field | EBC1719576 |
003 - CONTROL NUMBER IDENTIFIER | |
control field | MiAaPQ |
005 - DATE AND TIME OF LATEST TRANSACTION | |
control field | 20240729122845.0 |
006 - FIXED-LENGTH DATA ELEMENTS--ADDITIONAL MATERIAL CHARACTERISTICS | |
fixed length control field | m o d | |
007 - PHYSICAL DESCRIPTION FIXED FIELD--GENERAL INFORMATION | |
fixed length control field | cr cnu|||||||| |
008 - FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION | |
fixed length control field | 240724s2014 xx o ||||0 eng d |
020 ## - INTERNATIONAL STANDARD BOOK NUMBER | |
International Standard Book Number | 9781783982752 |
Qualifying information | (electronic bk.) |
020 ## - INTERNATIONAL STANDARD BOOK NUMBER | |
Canceled/invalid ISBN | 9781783982745 |
035 ## - SYSTEM CONTROL NUMBER | |
System control number | (MiAaPQ)EBC1719576 |
035 ## - SYSTEM CONTROL NUMBER | |
System control number | (Au-PeEL)EBL1719576 |
035 ## - SYSTEM CONTROL NUMBER | |
System control number | (CaPaEBR)ebr10887665 |
035 ## - SYSTEM CONTROL NUMBER | |
System control number | (CaONFJC)MIL621121 |
035 ## - SYSTEM CONTROL NUMBER | |
System control number | (OCoLC)882611110 |
040 ## - CATALOGING SOURCE | |
Original cataloging agency | MiAaPQ |
Language of cataloging | eng |
Description conventions | rda |
-- | pn |
Transcribing agency | MiAaPQ |
Modifying agency | MiAaPQ |
050 #4 - LIBRARY OF CONGRESS CALL NUMBER | |
Classification number | TK7887.5.G794 2014eb |
082 0# - DEWEY DECIMAL CLASSIFICATION NUMBER | |
Classification number | 621.3981 |
100 1# - MAIN ENTRY--PERSONAL NAME | |
Personal name | Grzejszczak, Marcin. |
245 10 - TITLE STATEMENT | |
Title | Mockito Cookbook. |
250 ## - EDITION STATEMENT | |
Edition statement | 2nd ed. |
264 #1 - PRODUCTION, PUBLICATION, DISTRIBUTION, MANUFACTURE, AND COPYRIGHT NOTICE | |
Place of production, publication, distribution, manufacture | Birmingham : |
Name of producer, publisher, distributor, manufacturer | Packt Publishing, Limited, |
Date of production, publication, distribution, manufacture, or copyright notice | 2014. |
264 #4 - PRODUCTION, PUBLICATION, DISTRIBUTION, MANUFACTURE, AND COPYRIGHT NOTICE | |
Date of production, publication, distribution, manufacture, or copyright notice | ©2014. |
300 ## - PHYSICAL DESCRIPTION | |
Extent | 1 online resource (335 pages) |
336 ## - CONTENT TYPE | |
Content type term | text |
Content type code | txt |
Source | rdacontent |
337 ## - MEDIA TYPE | |
Media type term | computer |
Media type code | c |
Source | rdamedia |
338 ## - CARRIER TYPE | |
Carrier type term | online resource |
Carrier type code | cr |
Source | rdacarrier |
505 0# - FORMATTED CONTENTS NOTE | |
Formatted contents note | Intro -- Mockito Cookbook -- Table of Contents -- Mockito Cookbook -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Getting Started with Mockito -- Introduction -- Adding Mockito to a project's classpath -- How to do it... -- See also -- Getting started with Mockito for JUnit -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Getting started with Mockito for TestNG -- Getting ready -- How to do it... -- How it works... -- See also -- Mockito best practices - test behavior not implementation -- Getting ready -- How to do it... -- See also -- Adding Mockito hints to exception messages (JUnit) (Experimental) -- Getting ready -- How to do it... -- How it works... -- Adding additional Mockito warnings to your tests (JUnit) (Experimental) -- How to do it... -- How it works... -- 2. Creating Mocks -- Introduction -- Creating mocks in code -- Getting ready -- How to do it... -- How it works... -- See also -- Creating mocks with annotations -- Getting ready -- How to do it... -- How it works... -- See also -- Creating mocks with a different default answer -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating mocks with different default answers with annotations -- Getting ready -- How to do it... -- How it works... -- See also -- Creating mocks with custom configuration -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating mocks of final classes with PowerMock -- Getting ready. |
505 8# - FORMATTED CONTENTS NOTE | |
Formatted contents note | How to do it... -- How it works... -- See also -- Creating mocks of enums with PowerMock -- Getting ready -- How to do it... -- How it works... -- See also -- 3. Creating Spies and Partial Mocks -- Introduction -- Creating spies in code -- Getting ready -- How to do it... -- How it works... -- See also -- Creating spies with custom configuration -- Getting ready -- How to do it... -- How it works... -- See also -- Creating spies using annotations -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating partial mocks -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating partial mocks of final classes with delegatesTo() -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating spies of final classes with PowerMock -- Getting ready -- How to do it... -- How it works... -- See also -- 4. Stubbing Behavior of Mocks -- Introduction -- Using argument matchers for stubbing -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Stubbing methods that return values -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Stubbing methods so that they throw exceptions -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Stubbing methods so that they return custom answers -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Stubbing methods so that they call real methods -- Getting ready -- How to do it... -- See also -- Stubbing void methods -- How to do it... -- How it works... -- See also -- Stubbing void methods so that they throw exceptions -- Getting ready -- How to do it... -- How it works... -- See also -- Stubbing void methods so that they return custom answers -- Getting ready -- How to do it. |
505 8# - FORMATTED CONTENTS NOTE | |
Formatted contents note | How it works... -- See also -- Stubbing void methods so that they call real methods -- Getting ready -- How to do it... -- How it works... -- See also -- Stubbing final methods with PowerMock -- Getting ready -- How to do it... -- How it works... -- See also -- Stubbing static methods with PowerMock -- Getting ready -- How to do it... -- How it works... -- See also -- Stubbing object instantiation using PowerMock -- Getting ready -- How to do it... -- How it works... -- See also -- 5. Stubbing Behavior of Spies -- Introduction -- Stubbing methods that return values -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Stubbing methods so that they throw exceptions -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Stubbing methods so that they return custom answers -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Stubbing void methods -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Stubbing void methods so that they throw exceptions -- Getting ready -- How to do it... -- How it works... -- See also -- Stubbing void methods so that they return custom answers -- Getting ready -- How to do it... -- How it works... -- See also -- Stubbing final methods with PowerMock -- Getting ready -- How to do it... -- How it works... -- See also -- 6. Verifying Test Doubles -- Introduction -- Verifying the method invocation count with times() -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Verifying the method invocation count with atLeast() -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Verifying the method invocation count with atMost() -- Getting ready -- How to do it... -- How it works... -- See also. |
505 8# - FORMATTED CONTENTS NOTE | |
Formatted contents note | Verifying that interactions never happened -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Verifying that interactions stopped happening -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Verifying the order of interactions -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Verifying interactions and ignoring stubbed methods -- Getting ready -- How to do it… -- How it works... -- See also -- Verifying the method invocation within the specified time -- Getting ready -- How to do it… -- How it works... -- There's more... -- See also -- 7. Verifying Behavior with Object Matchers -- Introduction -- Using Hamcrest matchers for assertions -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating custom Hamcrest matchers -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Using Hamcrest matchers for stubbing and verification -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Using AssertJ for assertions -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating custom AssertJ assertions -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Capturing and asserting the argument -- Getting ready -- How to do it... -- How it works... -- See also -- 8. Refactoring with Mockito -- Introduction -- Removing the problems with instance creation -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Refactoring classes that do too much -- Getting ready -- How to do it... -- See also -- Refactoring the classes that use the class casts -- Getting ready -- How to do it... -- See also -- Refactoring the classes that use static methods. |
505 8# - FORMATTED CONTENTS NOTE | |
Formatted contents note | Getting ready -- How to do it... -- See also -- Refactoring the tests that use too many mocks -- Getting ready -- How to do it... -- How it works.. -- There's more… -- See also -- 9. Integration Testing with Mockito and DI Frameworks -- Introduction -- Injecting test doubles instead of beans using Spring's code configuration -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Injecting test doubles instead of beans using Spring's XML configuration -- Getting ready -- How to do it... -- How it works... -- See also -- Injecting test doubles instead of beans using Springockito -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Injecting test doubles instead of beans with Guice -- Getting ready -- How to do it... -- How it works... -- See also -- Injecting test doubles instead of beans with Guice using Jukito -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- 10. Mocking Libraries Comparison -- Introduction -- Mockito versus EasyMock -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Mockito versus JMockit -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Mockito versus JMock -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Mockito versus Spock -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Index. |
520 ## - SUMMARY, ETC. | |
Summary, etc. | 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. |
588 ## - SOURCE OF DESCRIPTION NOTE | |
Source of description note | Description based on publisher supplied metadata and other sources. |
590 ## - LOCAL NOTE (RLIN) | |
Local note | Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2024. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries. |
650 #0 - SUBJECT ADDED ENTRY--TOPICAL TERM | |
Topical term or geographic name entry element | Computer interfaces. |
650 #0 - SUBJECT ADDED ENTRY--TOPICAL TERM | |
Topical term or geographic name entry element | User interfaces (Computer systems). |
655 #4 - INDEX TERM--GENRE/FORM | |
Genre/form data or focus term | Electronic books. |
776 08 - ADDITIONAL PHYSICAL FORM ENTRY | |
Relationship information | Print version: |
Main entry heading | Grzejszczak, Marcin |
Title | Mockito Cookbook |
Place, publisher, and date of publication | Birmingham : Packt Publishing, Limited,c2014 |
International Standard Book Number | 9781783982745 |
797 2# - LOCAL ADDED ENTRY--CORPORATE NAME (RLIN) | |
Corporate name or jurisdiction name as entry element | ProQuest (Firm) |
856 40 - ELECTRONIC LOCATION AND ACCESS | |
Uniform Resource Identifier | <a href="https://ebookcentral.proquest.com/lib/orpp/detail.action?docID=1719576">https://ebookcentral.proquest.com/lib/orpp/detail.action?docID=1719576</a> |
Public note | Click to View |
No items available.