Intermediate
102 Lessons
13h
Certificate of Completion
Takeaway Skills
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
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...
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
How You'll Learn
You don’t get better at swimming by watching others. Coding is no different. Practice as you learn with live code environments inside your browser.
Videos are holding you back. Educative‘s interactive, text-based lessons accelerate learning — no setup, downloads, or alt-tabbing required.
Learn faster and smarter with adaptive AI tools embedded in every Educative course.
Built-in assessments let you test your skills. Completion certificates let you show them off.