Mastering Unit Testing Using Mockito and JUnit

An advanced guide to mastering unit testing using Mockito and JUnit

Mastering Unit Testing Using Mockito and JUnit

Sujoy Acharya

1 customer reviews
An advanced guide to mastering unit testing using Mockito and JUnit
Packt Subscription
FREE
$9.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$43.99
RRP $43.99
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$18.90
$43.99
$9.99 p/m after trial
RRP $26.99
RRP $43.99
Subscription
eBook
Print + eBook
Start a FREE 10-day trial

Frequently bought together


Mastering Unit Testing Using Mockito and JUnit Book Cover
Mastering Unit Testing Using Mockito and JUnit
$ 26.99
$ 18.90
Mockito Cookbook Book Cover
Mockito Cookbook
$ 26.99
$ 18.90
Buy 2 for $37.80
Save $16.18
Add to Cart

Book Details

ISBN 139781783982509
Paperback314 pages

Book Description

It is insanity to keep doing things the same way and expect them to improve. Any program is useful only when it is functional; hence, before applying complex tools, patterns, or APIs to your production code, checking software functionality is must. Automated JUnit tests help you verify your assumptions continuously, detect side effects quickly, and also help you save time.

This book will provide the skills you need to successfully build and maintain meaningful JUnit test cases. You will begin with how to use advanced JUnit 4 features, improve code coverage, automate JUnit tests, monitor code quality, write JUnit tests for the database and web tier refactor legacy code, mock external dependencies using Mockito, and write testable code using test-driven development. By sequentially working through the steps in each chapter, you will quickly master the advanced JUnit features.

What You Will Learn

  • Write advanced JUnit test cases using advanced JUnit 4 features
  • Automate JUnit test cases using Gradle, Maven, and Ant scripting
  • Practice continuous integration with Jenkins and Ant, Maven, and Gradle scripting
  • Monitor code quality with the SonarQube dashboard
  • Analyze static code using PMD, Checkstyle, and FindBugs
  • Master code coverage with Clover, Cobertura, EclEmma, and JaCoCo
  • Design for testability and refactor legacy code
  • Practice test-driven development with Mockito

Authors

Book Details

ISBN 139781783982509
Paperback314 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mockito Cookbook Book Cover
Mockito Cookbook
$ 26.99
$ 18.90
Mockito Essentials Book Cover
Mockito Essentials
$ 17.99
$ 12.60
Mockito for Spring Book Cover
Mockito for Spring
$ 14.99
$ 10.50
Mastering Software Testing with JUnit 5 Book Cover
Mastering Software Testing with JUnit 5
$ 35.99
$ 25.20
Learning Continuous Integration with Jenkins - Second Edition Book Cover
Learning Continuous Integration with Jenkins - Second Edition
$ 35.99
$ 25.20
Mastering Microservices with Java 9 - Second Edition Book Cover
Mastering Microservices with Java 9 - Second Edition
$ 35.99
$ 25.20