Coverart for item
The Resource Mockito essentials : a practical guide to get you up and running with unit testing using Mockito, Sujoy Acharya

Mockito essentials : a practical guide to get you up and running with unit testing using Mockito, Sujoy Acharya

Label
Mockito essentials : a practical guide to get you up and running with unit testing using Mockito
Title
Mockito essentials
Title remainder
a practical guide to get you up and running with unit testing using Mockito
Statement of responsibility
Sujoy Acharya
Title variation
A practical guide to get you up and running with unit testing using Mockito
Creator
Subject
Genre
Language
eng
Summary
This book is ideal for developers who have some experience in Java application development as well as some basic knowledge of test doubles and JUnit testing. This book also introduces you to the fundamentals of JUnit testing, test doubles, refactoring legacy code, and writing JUnit tests for GWT and web services
Member of
Cataloging source
UMI
http://library.link/vocab/creatorName
Acharya, Sujoy
Dewey number
005.437
Illustrations
illustrations
Index
index present
LC call number
QA76.75
LC item number
.A343 2014
Literary form
non fiction
Nature of contents
dictionaries
Series statement
Community experience distilled
http://library.link/vocab/subjectName
  • Computer software
  • Computer software
  • Java (Computer program language)
  • COMPUTERS
  • COMPUTERS
  • Computer software
  • Computer software
  • Java (Computer program language)
Label
Mockito essentials : a practical guide to get you up and running with unit testing using Mockito, Sujoy Acharya
Instantiates
Publication
Note
Includes index
Carrier category
online resource
Carrier category code
  • cr
Carrier MARC source
rdacarrier
Content category
text
Content type code
  • txt
Content type MARC source
rdacontent
Contents
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Exploring Test Doubles; Working with unit tests; Understanding test doubles; Using dummy objects; Working with stubs; Exploring a test spy; Getting started with mock objects; Implementing fake objects -- simulators; Summary; Chapter 2: Socializing with Mockito; Exploring Mockito; Exploring unit test qualities; Realizing the significance of Mockito; Working with Mockito; Adding a Mockito dependency; Stubbing method calls; Throwing exceptions; Using argument matchers
  • Working with wildcard matchersWorking with a custom ArgumentMatcher class; Verifying method calls; Verifying zero and no-more interactions; Answering method calls; Understanding the Mockito architecture; Summary; Chapter 3: Accelerating Mockito; Learning advanced Mockito features; Working with void methods; Throwing exceptions from void methods; Working with void method callbacks; Learning doCallRealMethod and doNothing; Exploring doReturn; Verifying arguments using ArgumentCaptor; Working with generic collection arguments; Working with variable arguments and arrays
  • Verifying an invocation orderSpying objects; Exploring Mockito annotations; Changing the default Mockito settings; Resetting mock objects; Working with inline stubbing; Determining mock details; Summary; Chapter 4: Behavior-driven Development with Mockito; Understanding the context of BDD; Exploring the top-down strategy; Exploring the bottom-up strategy; Finding the gaps; Exploring BDD; Exercising BDD with Mockito; The BDD syntax; Summary; Chapter 5: Unit Testing the Legacy Code with Mockito; Understanding the legacy code; Exploring testing impediments; Working with PowerMock
  • Stubbing static methodsSuppressing static blocks; Suppressing a superclass constructor; Suppressing our own constructor; Suppressing methods; Stubbing private methods; Stubbing final methods; Mocking final classes; Designing for testability with Mockito; Identifying constructor issues; Realizing initialization issues; Working with private methods; Working with final methods; Exploring static method issues; Working with final classes; Learning new concerns; Exploring static variables and blocks; Summary; Chapter 6: Developing SOA with Mockito; Exploring Service-oriented Architecture (SOA)
  • Working with web servicesExploring JAX-WS with Eclipse; Developing a RESTful web service; Building a RESTful web service with Spring Framework; Summary; Chapter 7 : Unit Testing GWT Code with Mockito; Exploring Ajax and GWT; Learning the MVP pattern; Developing a GWT application using MVP; Unit testing GWT Code with Mockito; Summary; Index
Control code
895288428
Dimensions
unknown
Extent
1 online resource (1 volume)
Form of item
online
Isbn
9781783983612
Media category
computer
Media MARC source
rdamedia
Media type code
  • c
Other physical details
illustrations
http://library.link/vocab/ext/overdrive/overdriveId
cl0500000502
Sound
unknown sound
Specific material designation
remote
System control number
(OCoLC)895288428
Label
Mockito essentials : a practical guide to get you up and running with unit testing using Mockito, Sujoy Acharya
Publication
Note
Includes index
Carrier category
online resource
Carrier category code
  • cr
Carrier MARC source
rdacarrier
Content category
text
Content type code
  • txt
Content type MARC source
rdacontent
Contents
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Exploring Test Doubles; Working with unit tests; Understanding test doubles; Using dummy objects; Working with stubs; Exploring a test spy; Getting started with mock objects; Implementing fake objects -- simulators; Summary; Chapter 2: Socializing with Mockito; Exploring Mockito; Exploring unit test qualities; Realizing the significance of Mockito; Working with Mockito; Adding a Mockito dependency; Stubbing method calls; Throwing exceptions; Using argument matchers
  • Working with wildcard matchersWorking with a custom ArgumentMatcher class; Verifying method calls; Verifying zero and no-more interactions; Answering method calls; Understanding the Mockito architecture; Summary; Chapter 3: Accelerating Mockito; Learning advanced Mockito features; Working with void methods; Throwing exceptions from void methods; Working with void method callbacks; Learning doCallRealMethod and doNothing; Exploring doReturn; Verifying arguments using ArgumentCaptor; Working with generic collection arguments; Working with variable arguments and arrays
  • Verifying an invocation orderSpying objects; Exploring Mockito annotations; Changing the default Mockito settings; Resetting mock objects; Working with inline stubbing; Determining mock details; Summary; Chapter 4: Behavior-driven Development with Mockito; Understanding the context of BDD; Exploring the top-down strategy; Exploring the bottom-up strategy; Finding the gaps; Exploring BDD; Exercising BDD with Mockito; The BDD syntax; Summary; Chapter 5: Unit Testing the Legacy Code with Mockito; Understanding the legacy code; Exploring testing impediments; Working with PowerMock
  • Stubbing static methodsSuppressing static blocks; Suppressing a superclass constructor; Suppressing our own constructor; Suppressing methods; Stubbing private methods; Stubbing final methods; Mocking final classes; Designing for testability with Mockito; Identifying constructor issues; Realizing initialization issues; Working with private methods; Working with final methods; Exploring static method issues; Working with final classes; Learning new concerns; Exploring static variables and blocks; Summary; Chapter 6: Developing SOA with Mockito; Exploring Service-oriented Architecture (SOA)
  • Working with web servicesExploring JAX-WS with Eclipse; Developing a RESTful web service; Building a RESTful web service with Spring Framework; Summary; Chapter 7 : Unit Testing GWT Code with Mockito; Exploring Ajax and GWT; Learning the MVP pattern; Developing a GWT application using MVP; Unit testing GWT Code with Mockito; Summary; Index
Control code
895288428
Dimensions
unknown
Extent
1 online resource (1 volume)
Form of item
online
Isbn
9781783983612
Media category
computer
Media MARC source
rdamedia
Media type code
  • c
Other physical details
illustrations
http://library.link/vocab/ext/overdrive/overdriveId
cl0500000502
Sound
unknown sound
Specific material designation
remote
System control number
(OCoLC)895288428

Library Locations

    • Curtis Laws Wilson LibraryBorrow it
      400 West 14th Street, Rolla, MO, 65409, US
      37.955220 -91.772210
Processing Feedback ...