Skip to Content
MASTERING UNIT TESTING USING MOCKITO AND JUNIT
book

MASTERING UNIT TESTING USING MOCKITO AND JUNIT

by Sujoy Acharya
July 2014
Intermediate to advanced
314 pages
6h 25m
English
Packt Publishing

Overview

In 'Mastering Unit Testing Using Mockito and JUnit', you'll delve deep into advanced testing techniques with Mockito and JUnit. This book offers a structured and practical approach to mastering unit testing, from writing and automating test cases to integrating tools like Jenkins for continuous integration.

What this Book will help me do

  • Master advanced JUnit 4 features to craft comprehensive test cases.
  • Automate testing with Gradle, Maven, and Ant for efficient workflows.
  • Improve code quality using tools like SonarQube, PMD, and Checkstyle
  • Gain expertise in code coverage using Clover, Cobertura, and EclEmma.
  • Learn Mockito for test-driven development and designing testable code.

Author(s)

None Acharya is an experienced software developer and author specializing in Java application development and software testing. With a keen eye for detail and a passion for clean, maintainable code, they bring practical insights and hands-on guidance to help developers enhance their testing practices.

Who is it for?

This book is suited to Java developers with beginner to moderate experience with JUnit testing. If you wish to enhance your unit testing skills, automate your testing process, or delve into test-driven development, this book is tailored for you. Ideal for engineers striving to improve their code quality and practices.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Testing with JUnit

Testing with JUnit

Leonard Przybylski, Frank Appel
Pragmatic Unit Testing in Java 8 with JUnit

Pragmatic Unit Testing in Java 8 with JUnit

Jeff Langr, Andy Hunt, Dave Thomas

Publisher Resources

ISBN: 9781783982509