Explore writing unit tests for Java applications using JUnit, delve into JUnit organization, assertions, quality practices, design relevance, refactoring, and using mock objects for dependencies.
Intermediate
102 Lessons
13h
Certificate of Completion
Explore writing unit tests for Java applications using JUnit, delve into JUnit organization, assertions, quality practices, design relevance, refactoring, and using mock objects for dependencies.
AI-POWERED
AI-POWERED
This course includes
This course includes
Course Overview
In this course, you will learn how to write a unit test for Java applications using JUnit. You'll start by covering unit-testing foundations, which provide you with a starter set of information about writing basic tests in JUnit. You’ll learn about JUnit organization and assertions, and you’ll pick up a few core quality practices for unit testing such as the Right BICEP and the CORRECT way. Towards the end, the bigger design picture focuses on the relevance of design to unit testing and vice versa. You’ll...
What You'll Learn
Learn how to effectively test Java applications using JUnit
Get to know the core quality principles of unit testing
Master writing cleaner and refactored JUnit tests
What You'll Learn
Learn how to effectively test Java applications using JUnit
Show more
Course Content
Before We Begin
JUnit Test Foundations
Digging Deeper into JUnit Assertions
Organizing Your Tests
Mastering Manic Mnemonics!
What to Test: The Right-BICEP
8 Lessons
Boundary Conditions: The CORRECT Way
8 Lessons
The Bigger Design Picture
5 Lessons
Bigger Design Issues
6 Lessons
Using Mock Objects
7 Lessons
Refactoring Tests
10 Lessons
The Bigger Unit-Testing Picture
10 Lessons
Testing Some Tough Stuff
6 Lessons
Testing on a Project
4 Lessons
Wrapping Up
1 Lesson
Appendix - Setting up JUnit
2 Lessons
Course Author
Trusted by 1.4 million developers working at companies
Anthony Walker
@_webarchitect_
Evan Dunbar
ML Engineer
Carlos Matias La Borde
Software Developer
Souvik Kundu
Front-end Developer
Vinay Krishnaiah
Software Developer
Eric Downs
Musician/Entrepeneur
Kenan Eyvazov
DevOps Engineer
Souvik Kundu
Front-end Developer
Eric Downs
Musician/Entrepeneur
Anthony Walker
@_webarchitect_
Evan Dunbar
ML Engineer
See how Educative uses AI to make your learning more immersive than ever before.