Practical Test-Driven Development for Java Programmers
Offered By: LinkedIn Learning
Course Description
Overview
Learn the fundamentals of test-driven Java development. This hands-on course covers how to write tests for tricky scenarios, use mocking frameworks like Mockito, and more.
Syllabus
Introduction
- Welcome
- What is test-driven development?
- What do you want to test?
- The case study
- Set up instructions for IntelliJ users
- Setting up the project structure
- JUnit basics
- Examples and outcomes
- Getting to red
- Getting to green
- Why you always start with red
- Adding more tests
- Understanding the business logic
- Finally writing some code
- Testing for exceptions
- Challenge 1
- Walkthrough 1
- Challenge 2
- Walkthrough 2 and challenge 3
- Walkthrough 3
- Getting to more complex requirements
- Using TDD to safely fix bugs
- Challenge 4 and walkthrough 4
- Finishing the business requirements
- Introducing refactoring
- Restructuring code
- Good and bad tests
- JUnit asserts
- Testing code with dependencies
- Building an example
- Creating the stub
- Why mocks are useful
- Creating a mock
- Testing behaviour
- Mockito syntax options
- Reviewing fakes and tautologies
- Challenge 5
- Walkthrough 5
- Using setUp and tearDown
- Tautologies
- How to avoid tautologies
- Loading up the final case study
- Understanding the project structure
- Understanding the business logic
- Adding Mockito
- Setting up the tests
- The need for spying
- Challenge 6
- Walkthrough 6, part 1
- Walkthrough 6, part 2
Taught by
Matt Greencroft
Related Courses
A Practical Introduction to Test-Driven DevelopmentLearnQuest via Coursera Android App Development
Vanderbilt University via Coursera Building Interactive User Interfaces Using React Library
NIIT StackRoute via Coursera Основы разработки на C++: жёлтый пояс
Moscow Institute of Physics and Technology via Coursera Learn Intermediate Python 3
Codecademy