NOW IN BETA

Pragmatic Unit Testing in Java with JUnit, Third Edition

by Jeff Langr

Margaret Eldridge
The Pragmatic Programmers

--

Now in beta from The Pragmatic Programmers, Jeff Langr helps you write unit tests for your Java apps in Pragmatic Unit Testing in Java with JUnit, Third Edition.

While the book is in beta, please share your thoughts and suggestions on the book’s page on DevTalk. DevTalk community members can save 35 percent on the ebook with an exclusive DevTalk promo code.

About Pragmatic Unit Testing in Java with JUnit, Third Edition

Pragmatic Unit Testing in Java with JUnit steps you through all the important unit testing topics.

If you’ve never written a unit test, you’ll be hand-held through the hard part — getting set up and started. Once past the basics, you’ll see numerous examples to help you recognize what tests for common code concepts look like. You’ll then learn how to effectively use the essential features of JUnit, the predominant tool for writing and executing unit tests in Java.

You’ll gain the collected unit testing wisdom of folks who’ve “been there, done that” on production systems for many combined decades: Jeff Langr, Andy Hunt, and Dave Thomas. You’ll learn how to:

  • Craft your code to make unit testing easier in the first place
  • Craft your unit tests to minimize your maintenance effort
  • Use unit tests to support keeping your system clean through refactoring
  • Refactor toward a design that will create the highest possible ROI
  • Test the tough stuff, including code that must be mocked
  • Remember what’s important when writing unit tests
  • Help your team reap and sustain the benefits of unit testing
  • Use AI tooling as part of a development process that incorporates unit testing

You won’t just learn about unit testing in theory — you’ll learn about “real” unit testing the Pragmatic way, by working through numerous code examples.

Now available in beta from pragprog.com/titles/utj3.

--

--