JUnit in Action, 3rd Edition

JUnit in Action, 3rd Edition

English | 2020 | ISBN: 978-1617297045 | 525 Pages | PDF | 34 MB


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.
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.
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 Cătălin 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