Practice test-driven development in Java with JUnit and Mockito. Learn to write tests first, isolate dependencies, and refactor code while preserving behavior.
What you'll learn
Apply the Red-Green-Refactor workflow to Java development
Write and run focused unit tests with JUnit
Refactor code safely while preserving tested behavior
Identify common code smells and select appropriate refactoring techniques
Use Mockito test doubles to isolate dependencies
Distinguish among dummies, stubs, spies, mocks, and fakes
Apply SOLID principles and dependency injection to improve testability
Advantages and disadvantages
Advantages
University courses you can audit for free, with lectures, readings and practice quizzes.
A verified certificate from the university if you pay for it.
Self-paced: start any time.
Disadvantages
Graded assignments and the certificate need the paid track.
Audit access can expire a few weeks after the course ends.
Learning is free, but the certificate costs money.
Some parts (graded work, certificate) are paid.
Some points apply to every course of this kind; see how we rank.
Free to audit
Free: Choose "Audit this course" when you enrol: lectures, readings and practice are free.
Paid: Graded assignments and the verified certificate (Certificate $85). Audit access may end after the course closes.
Before you start
Beginner: Computer Science Fundamentals (Java, JUnit, Mockito)
Beginner: Programming, Algorithms, and Data Structures (Java, JUnit, Mockito)
Instructor: Dennis Freeman, Kendra Pugh This course provides an integrated introduction to electrical engineering and computer science, including modern software engineering, linear systems analysis, electronic circuits, and decision-making. The lecture videos provide an overview of each topic, whi…