Mô tả

In this course I take you through the full process of Test Driven Development (TDD), 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.

Bạn sẽ học được gì

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

Yêu cầu

  • Basic Java and IntelliJ / Eclipse IDE

Nội dung khoá học

9 sections

Introduction

4 lectures
Introduction
01:12
Setting up a project using IntelliJ
01:42
Setting up a project using Eclipse
01:10
Resolving errors and using shortcuts in your IDE
01:29

Jumping straight in

10 lectures
Jumping straight in
03:53
The not null test
01:49
Red green refactor
02:41
Acceptance criteria
00:28
Exercise 1 - Create a calculator class from a test perspective
00:10
Exercise 1 - solution
01:04
Exercise 2 - Provide an add method which accepts two integers
00:05
Exercise 2 - solution
02:44
Exercise 3 - Provide a subtract method which accepts two integers
00:05
Exercise 3 - solution
03:06

Work through the FizzBuzz kata

8 lectures
Working with katas to increase your TDD skills
00:32
The fizz buzz not null test
01:32
The fizz test
01:37
The fizz test - refactored
02:00
The buzz test
02:34
A problem and a new requirement
00:56
Exercise 4
00:13
Exercise 4 - solution
02:30

Change requests

9 lectures
The change request
01:03
Refactoring the add method
01:26
Refactoring the add method - a cleaner way
03:01
The exception test for add method
04:11
Refactor the subtract method and handle the exception assignments intro
00:50
Exercise 5 - Refactoring the subtract method
00:14
Exercise 5 - solution
02:56
Exercise 6 - Refactoring the subtract method to throw an exception
00:13
Exercise 6 - solution
02:54

Additional criteria for the calculator for you to try alone

12 lectures
Working through this section using assignments to hone your skills
00:17
A quick test refactor
01:41
Exercise 7 - Add and test a multipy method
00:15
Exercise 7 - solution
02:06
Exercise 8 - Throw an exception if more than two decimal places passed in
00:10
Exercise 8 - solution
01:27
Exercise 9 - Add a divide method which passes two string values.
00:14
Exercise 9 - solution
01:42
Exercise 10 - Throw exception if more than two digit values passed in
00:12
Exercise 10 - solution
01:27
Exercise 11 - Throw exception when second value is zero
00:17
Exercise 11 - solution
01:50

Refactoring exercises

20 lectures
Refactoring exercise
00:42
Refactor intro
00:34
Exercise 12 - Create a Validation class
00:09
Exercise 12 - solution
01:27
Exercise 13 - Create a validate method
00:18
Exercise 13 - solution
03:01
Exercise 14 - Test the validate method by passing a single three digit decimal
00:16
Exercise 14 - solution
03:53
Exercise 15 - Test the validate method with multiple three digit decimal Strings
00:19
Exercise 15 - solution
01:41
Exercise 16 - Pass the Validator in to the Calculator class
00:11
Exercise 16 - solution
01:45
Exercise 17 - Refactor the Add method to validate using the validator
00:05
Exercise 17 - solution
03:09
Exercise 18 - Refactor the Subtract method to validate using the validation clas
00:05
Exercise 18 - solution
03:17
Exercise 19 -Refactor the Multiply method to validate using the validation class
00:08
Exercise 19 - solution
01:22
Exercise 20 - Refactor the Divide method to validate using the validation class
00:08
Exercise 20 - solution
02:44

Practice makes perfect with katas

3 lectures
Practice makes perfect
00:43
Finding katas to practice with
01:22
Links to katas
00:35

Summary of what you have learned from this course

1 lectures
Summary of what you’ve learned in this course
00:52

Resources

1 lectures
Books I recommend
00:58

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.