From the course: Practical Test-Driven Development for Java Programmers
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Challenge 5
From the course: Practical Test-Driven Development for Java Programmers
Challenge 5
- [Instructor] So with this information, I'm going to suggest that you pause the video and have a go at changing the first method that we wrote previously as a stub into a version that uses Mockito. I am going to do the walkthrough on the video but I'm also then going to do a refactor which will just show off another feature of Junit that we haven't seen yet. I'll also talk about one further issue, so do watch through to the end of the video even if you're comfortable that you can create the stub with no issues. So pause the video, have a go at creating that stub now, then press Resume and we'll carry on together.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.