4.12 out of 5
4.12
620 reviews on Udemy

Learn Test Driven Development in Java

Learn everything you need to know about TDD, Test driven development tutorial for Java through real examples.
Instructor:
Fluent Software Solutions
4,397 students enrolled
English [Auto-generated]
By the end of this course, you will be able to use a test driven approach to successfully deliver Java applications
In this course, you will learn how to design applications with testability in mind
In this course, you will learn how the rapid feedback loop of a test driven cycle can give real productivity and quality benefits
You will learn some common testing pitfalls to avoid when writing your tests
You will learn how to apply test driven development to your existing code allowing you to start applying TDD immediately

This “Java Training: Test Driven Development Tutorial for Java” course provides everything you need to know to get started with test driven development in Java.

This course covers test driven development from scratch, through video lectures, demonstrations of practicing a test driven approach, and through exercises for you to complete, allowing you to gain valuable experience in using TDD.

For more information on our “Java Training: Test Driven Development Tutorial for Java” courses, visit our course page.

Sign up for this Java Training course now and learn from the ultimate test driven development tutorial for Java.

Introduction to TDD

1
What is TDD
This introduction covers defining what we mean by test driven development, and provides a brief history of the origins of TDD
2
The Test Driven Development cycle
This lecture demonstrates what each stage of the TDD cycle looks like.
3
Why TDD?
This lecture highlights some of the common benefits seen among teams when developing using test driven development.

Demonstrating TDD, through walkthroughs and exercises

1
Let's get started, introducing our example app
This lecture introduces our example application that we will use to demonstrate and practice test driven development.
2
Demonstrating the reverse polish calculator
This lecture shows how a reverse polish calculator works, using the calculator built in to Mac OSX.
3
TDD walkthrough part 1
4
TDD walkthrough part 2
5
TDD walkthrough part 3
6
Walkthrough summary, common questions
This lecture summarises our experiences with test driven development so far.

Real world TDD Part 1 : Design enabling test

1
Introduction to real world testing
This lecture introduces the idea of good design being a requirement for testability, and the idea that using a test driven approach can force that design. This section illustrates a number of design principles that are good to follow for creating both maintainable and testable code.
2
Introducing SOLID design principles
3
Single responsibility principle
4
Open closed principle
5
Liskov substitution
6
Interface seggregation
7
Dependency inversion

Real world TDD Part 2 : Test doubles

1
Introducing test doubles
This section introduces test doubles, and demonstrates various types of test doubles that you can use to aid your test driven development, and shows that not every type of test double is a mock.
2
Stubs
Demonstrating Stub test doubles and what they can be used for.
3
Fakes
Demonstrating Fake test doubles and what they can be used for.
4
Mocks
Demonstrating one the most commonly used (and misused) types of test doubles - the mock.
5
Demonstrating Test Doubles
In this walkthrough we will demonstrate how we can go about testing something more complicated than our simple calculator example, showing how different types of test doubles are used, and can be injected into our system under test.
6
Mock frameworks
This lecture concludes our test doubles section, and introduces mock frameworks and discusses how and when they can be used.

Testing legacy code

1
Dealing with legacy code
This section introduces testing legacy code, something that often causes teams to struggle when trying to follow a test driven approach.
2
Demonstration of testing legacy code
This walkthrough demonstrates an example of some legacy code, and some unit tests that have been created that allow this code to be tested effectively.
3
Legacy code summary
A conclusion to how we can go about testing legacy code, and still follow a test driven approach.

Test principles

1
Test principles
This section introduces a number of test principles that are good to keep in mind when creating your tests, as well as a number of testing anti-patterns that can make your testing harder than it should be.
2
Testing anti-patterns: The Singleton
3
Testing anti-patterns: Create the World
4
Testing anti-patterns: Completely Mocked
5
Testing anti-patterns: The Exceptional Test
6
Testing anti-patterns: Usually Passes
7
Testing anti-patterns: One Big Test
8
Test anti-patterns: The Slow Test
9
Testing anti-patterns: Second class test

Applying TDD

1
Applying Test Driven Development
In our final section, we provide some advice on how best to apply test driven development in your environment.
2
TDD Kata
This final lecture leaves you with a number of exercises that you can use to practice and improve your test-driven skills
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.1
4.1 out of 5
620 Ratings

Detailed Rating

Stars 5
177
Stars 4
253
Stars 3
144
Stars 2
35
Stars 1
11
c10096b91504c1e9c038b1b0021e87b4
30-Day Money-Back Guarantee

Includes

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