4.94 out of 5
4.94
8 reviews on Udemy

Test Driven Development with Java for complete beginners

Learn Test Driven Development by working through examples and katas
Instructor:
Tony Perrin
12 students enrolled
English [Auto-generated]
Test driven development with Java working from test first perspective
Learn the red, green, refactor lifecycle for rapid feedback loop
Improve the quality of your code by using TDD
Learn how to refactor your code using tests to give you confidence that you wont breaking your exisiting code

In this course I take you through the full process of Test Driven Development, starting from an overview of what TDD is and how we should use it along with progressive examples throughout the course which will get you up to speed quickly.

We cover the basic fundamentals of TDD by learning about the Red, Green, Refactor life cycle and how we can use this to help us draw out the simplest implementation of our code while giving us the confidence in our tests to refactor our codebase without breaking existing code (cause regressions).

The course aims to take complete beginners through everything thats needed in TDD from IDE setup to working through acceptance criteria exactly like you’d expect to find in a real world working environment so previous experience is not required other than a basic understanding of Java or other object oriented language.

We learn about katas and how they can dramatically help improve your Java and TDD development skills with just a little practice each day.

This course will help get you quickly up to speed in one of the most overlooked  but essential areas of Java development which features highly in job requirements and is commonly featured in first and second stage interviews.

Introduction

1
Introduction
2
Setting up a project using IntelliJ
3
Setting up a project using Eclipse
4
Resolving errors and using shortcuts in your IDE

Jumping straight in

1
Jumping straight in
2
The not null test
3
Red green refactor
4
Acceptance criteria
5
Create a calculator class from a test perspective
6
Provide an add method
7
Provide a subtract method
8
Summary of what we've learnt in this section

Work through the FizzBuzz kata

1
Working with katas to increase your TDD skills
2
The fizz buzz not null test
3
The fizz test
4
The fizz test - refactored
5
The buzz test
6
A problem and a new requirement
7
A new requirement
8
Summary of what we've learnt in this section

Change requests

1
The change request
2
Refactoring the add method
3
Refactoring the add method - a cleaner way
4
The exception test for add method
5
Refactor the subtract method and handle the exception assignments intro
6
Refactoring the subtract method
7
The exception test for the subtract method
8
Summary of what we've learnt in this section

Additional criteria for the calculator for you to try alone

1
Working through this section using assignments to hone your skills
2
A quick test refactor
3
Add and test a multiply method which passes two string decimals return a String
4
Throw an exception if more than two decimal places passed in
5
Add a divide method which passes two string values.
6
Throw exception if more than two digit values passed in
7
Throw exception when second value is zero
8
Summary of what we've learnt in this section

Refactoring exercise

1
Refactoring exercise
2
Refactor intro
3
Create the validation class with the null check
4
Create a Validation class
5
Create a validate method
6
Test the validate method by passing in a single three digit decimal
7
Test the validate method with multiple three digit decimal Strings
8
Pass the Validator in to the Calculator class
9
Refactor the Add method to validate using the validator
10
Refactor the Subtract method to validate using the validation class
11
Refactor the Multiply method to validate using the validation class
12
Refactor the Divide method to validate using the validation class
13
Summary of what we've learnt in this section

Practice makes perfect with katas

1
Practice makes perfect
2
Finding katas to practice with
3
Links to katas

Summary of what you have learned from this course

1
Summary of what you’ve learned in this course

Resources

1
Books I recommend
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.9
4.9 out of 5
8 Ratings

Detailed Rating

Stars 5
7
Stars 4
1
Stars 3
0
Stars 2
0
Stars 1
0
193b70e9f8cf837a031f70f8fa52d1e7
30-Day Money-Back Guarantee

Includes

2 hours on-demand video
2 articles
Full lifetime access
Access on mobile and TV
Certificate of Completion