JUnit in Action, Third Edition

  • 7h 22m
  • Cătălin Tudose
  • Manning Publications
  • 2020

JUnit in Action, Third Edition has been completely rewritten for this release. The book is full of examples that demonstrate JUnit's modern features, including its new architecture; nested, tagged, and dynamic tests; and dependency injection.

Summary

JUnit is the gold standard for unit testing Java applications. Filled with powerful new features designed to automate software testing, JUnit 5 boosts your productivity and helps avoid debugging nightmares. Whether you're just starting with JUnit or you want to ramp up on the new features, JUnit in Action, Third Edition has you covered. Extensively revised with new code and new chapters, JUnit in Action, Third Edition is an up-to-date guide to smooth software testing. Dozens of hands-on examples illustrate JUnit 5's innovations for dependency injection, nested testing, parameterized tests, and more. Throughout, you’ll learn how to use JUnit 5 to automate your testing, for a process that consumes less resources, and gives you more time for developing.

About the technology

The JUnit framework is the gold standard for unit testing Java applications—and knowing it is an essential skill for Java developers. The latest version, JUnit 5, is a total overhaul, now supporting modern Java features like Lambdas and Streams.

About the book

JUnit in Action, Third Edition has been completely rewritten for this release. The book is full of examples that demonstrate JUnit's modern features, including its new architecture; nested, tagged, and dynamic tests; and dependency injection. You'll benefit from author Catalin Tudose's unique "pyramid" testing strategy, which breaks the testing process into layers and sets you on the path to bug-free code creation.

What's inside

  • Migrating from JUnit 4 to 5
  • Effective test automation
  • Test-driven development and behavior-driven development
  • Using mocks for test isolation
  • Connecting JUnit 5 with Maven or Gradle

About the reader

For intermediate Java developers.

About the Author

Catalin Tudose has a Ph.D. in Computer Science, and over 15 years of experience as a Senior Java Developer and Technical Team Lead. Previous editions were authored by Petar Tahchiev, Felipe Leme, Gary Gregory, and Vincent Massol.

In this Book

  • About This Book
  • JUnit Jump-Start
  • Exploring Core JUnit
  • JUnit Architecture
  • Migrating from JUnit 4 to JUnit 5
  • Software Testing Principles
  • Test Quality
  • Coarse-Grained Testing with Stubs
  • Testing with Mock Objects
  • In-Container Testing
  • Running JUnit Tests from Maven 3
  • Running JUnit Tests from Gradle 6
  • JUnit 5 IDE Support
  • Continuous Integration with JUnit 5
  • JUnit 5 Extension Model
  • Presentation-Layer Testing
  • Testing Spring Applications
  • Testing Spring Boot Applications
  • Testing a REST API
  • Testing Database Applications
  • Test-Driven Development with JUnit 5
  • Behavior-Driven Development with JUnit 5
  • Implementing a Test Pyramid Strategy with JUnit 5
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.5 of 37 users Rating 4.5 of 37 users (37)
Rating 4.6 of 38 users Rating 4.6 of 38 users (38)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 162 users Rating 4.5 of 162 users (162)