Book Image

Mastering Unit Testing Using Mockito and JUnit

By : Sujoy Acharya
Book Image

Mastering Unit Testing Using Mockito and JUnit

By: Sujoy Acharya

Overview of this book

Table of Contents (17 chapters)
Mastering Unit Testing Using Mockito and JUnit
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


This chapter covered the JUnit best practices and explained the underlying principles. The best practices are writing meaningful tests, automating unit tests, test configuration, working with assertions, exception handling in test cases, identifying test smells, and refactoring test smells.

Now you will be able to write clean and maintainable test cases.