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 1

Challenge 1

- [Instructor] So that's the first step of our three step cycle completed. We've got our test written with a red bar. Now it's time to go make that bar green by writing the code to make this test pass. I'm going to ask you to pause the video and give this a go. Remember that you want to be writing the minimum amount of code you need to make this test pass. Pause the video, give that a go. It should only actually need a single line of code, and when you've had a go at it, press play and you can compare whether you've done it in the same way as me.

Contents