Instant Mockito. (2013)
- Record Type:
- Book
- Title:
- Instant Mockito. (2013)
- Main Title:
- Instant Mockito.
- Other Names:
- Grzejszczak, Marcin
- Contents:
- Cover; Copyright; Credits; About the Author; About the Reviewer; www.packtpub.com; packtlib.packtpub.com; Table of Contents; Instant Mockito; So, what is Mockito?; Using Mockito; Integrating Mockito within your existing websites/applications; Installation; Step 1 -- what do I need?; Step 2 -- attaching JARs to the classpath; And that's it; Quick start -- creating your first unit test with Mockito; Step 1 -- picking a class that you want to unit test; Step 2 -- picking a method that you want to unit test; Step 3 -- creating a unit test class with a properly defined method. Step 4 -- creating the mocks, and setting them in the object under testStep 5 -- defining, executing, and verifying Mock behavior; Top 8 features you need to know about; Performing argument matching; Stubbing multiple calls; Working with void methods and thrown exceptions; Stubbing with a custom answer; Verifying behavior (including argument capturing, verifying call order, and working with asynchronous code); Doing partial mocking (spying); Reducing boilerplate code with annotations; Removing boilerplate by using the MockitoJUnitRunner. Removing boilerplate when you can't use the MockitoJUnitRunnerTaking advantage of advanced mocks configuration; Let us be more informative on NullPointerException; Providing additional interfaces; People and places you should get to know; Official sites; Articles and tutorials; Community; Blogs; Twitter.
- Publisher Details:
- Place of publication not identified : Packt Publishing
- Publication Date:
- 2013
- Extent:
- 1 online resource
- Subjects:
- 005.14
COMPUTERS -- Programming Languages -- Java
Computer interfaces
User interfaces (Computer systems)
Computer interfaces
User interfaces (Computer systems)
COMPUTERS -- Software Development & Engineering -- Quality Assurance & Testing
Electronic books - Languages:
- English
- ISBNs:
- 1299832695
9781299832695
9781782167983
1782167986
9781782167976
1782167978 - Notes:
- Note: Print version record.
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.86779
- Ingest File:
- 01_024.xml