
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Pragmatic Unit Testing in Java with JUnit, Third Edition
About this book
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 in order to start understanding 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 combined wisdom of Jeff Langr and original authors Andy Hunt and Dave Thomas, providing decades of unit testing experience on real production systems. 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.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Table of contents
- Pr agmatic Unit Testing in Java with JUnit, Third Edition