Search our courses
Training

The practice of Test Driven Development (TDD) allows an agile development team to efficiently convert user defined requirements into a well-designed, fully tested working implementation that not only meets the business need, but will also be easy and safe to extend, maintain, and enhance over time. Rather than spending weeks or months on an extended “design phase,” agile teams use TDD to evolve and optimize their design and implementation over time to meet the team’s evolving understanding of the business requirements.
 
You will learn the basic skills and gain the hands-on experience required to implement TDD in your agile project.  You’ll be introduced to TDD related skills and concepts in context while working to turn example business requirements into working code.
 
As a technical workshop, this course emphasizes hands-on coding and the use of widely adopted development tools and testing frameworks for the Java development language. This Test Driven Development training course can be modified to use real-life examples and situations from the students’ own experiences. It would also benefit a new Agile project team that attends as a group, providing a common foundation of knowledge and experience for everyone on the team.


Learning Objectives:

  • Sketching an implementation model from user requirements, emphasizing the assignment of responsibilities to classes, components, and sub-systems.
  • The TDD Test-Code-Refactor cycle.
  • Coding by intention, and triangulating to arrive at an optimal solution.
  • Using unit tests as executable specifications that document the behavior of the code that they test.
  • Detecting common design deficiencies or “code smells” and improving them through refactoring.
  • Isolating units to be tested using test doubles and mocking frameworks.
  • The relationship between user stories, confirmations, acceptance tests, integration tests, and  unit tests.

 

System Requirements:

  • JDK (Java Development Kit version 1.5 or later, Eclipse IDE version 4.0 or later, JUnit version 4.X and JUnit plug-in for Eclipse, Mockito framework version 1.9 or later.

Test Driven Development

Course Code

GTTDD

Duration

3 Day

Course Fee

POA
 

Accreditation

N/A

Target Audience

This Test Driven Development training course is primarily intended for hands-on developers.  While relatively little prior experience in TDD or writing unit tests is assumed, participants should be equipped and prepared to engage in hands-on coding during the course.

Attendee Requirements

Participants should be proficient with the Java programming language and its commonly used libraries and APIs, and at least somewhat familiar with the Eclipse IDE.

Expand all

Course Description

The practice of Test Driven Development (TDD) allows an agile development team to efficiently convert user defined requirements into a well-designed, fully tested working implementation that not only meets the business need, but will also be easy and safe to extend, maintain, and enhance over time. Rather than spending weeks or months on an extended “design phase,” agile teams use TDD to evolve and optimize their design and implementation over time to meet the team’s evolving understanding of the business requirements.
 
You will learn the basic skills and gain the hands-on experience required to implement TDD in your agile project.  You’ll be introduced to TDD related skills and concepts in context while working to turn example business requirements into working code.
 
As a technical workshop, this course emphasizes hands-on coding and the use of widely adopted development tools and testing frameworks for the Java development language. This Test Driven Development training course can be modified to use real-life examples and situations from the students’ own experiences. It would also benefit a new Agile project team that attends as a group, providing a common foundation of knowledge and experience for everyone on the team.


Learning Objectives:

  • Sketching an implementation model from user requirements, emphasizing the assignment of responsibilities to classes, components, and sub-systems.
  • The TDD Test-Code-Refactor cycle.
  • Coding by intention, and triangulating to arrive at an optimal solution.
  • Using unit tests as executable specifications that document the behavior of the code that they test.
  • Detecting common design deficiencies or “code smells” and improving them through refactoring.
  • Isolating units to be tested using test doubles and mocking frameworks.
  • The relationship between user stories, confirmations, acceptance tests, integration tests, and  unit tests.

 

System Requirements:

  • JDK (Java Development Kit version 1.5 or later, Eclipse IDE version 4.0 or later, JUnit version 4.X and JUnit plug-in for Eclipse, Mockito framework version 1.9 or later.
Course Outline

1. Conceptual Overview

  • TDD What and Why
  • The Test-Code-Refactor Cycle
  • TDD in an Agile Development Process

2. Unit Test Mechanics

  • Setting Up the Environment
  • The Structure of a Unit Test Class
  • Assertions and Matchers
  • Handling Error Conditions

3. Isolating Code with Test Doubles

  • What are Fakes, Stubs, and Mocks
  • When and Why to Use Doubles
  • Basic Usage of the Mockito Framework
  • Advanced Mocking Scenarios

4. Intro to Emergent Design

  • Identifying Common “Code Smells”
  • Applying Object Oriented Design Principles
  • Applying Common Refactorings
  • Refactoring to Design Patterns

5. A Basic TDD Episode

  • Analyzing a Simple Requirement
  • Writing a First Test by Intention
  • Making the Test Pass
  • Completing the Specification with Triangulation
  • Refactoring to Improve the Design

6. Exercise 1: Test Driving a Story Part 1 (Code Along with the Instructor)

  • Our Example User Story
  • Sketching an Approach
  • Test Driving the First Confirmation
  • Using Test Doubles
  • Refactoring to Improve the Design

7. Exercise 2: Test Driving a Story Part 2 (Code Along with the Instructor)

  • Test Driving More Confirmations
  • Managing Test and Mock Code
  • Design Principles and Patterns
  • Managing and Hiding Complexity
  • More Refactoring

8. Exercise 3: Test Driving a Story Part 3 (Code In Pairs)

  • More Confirmations
  • Extending the Solution Safely
  • Clarifying Conversations with the Product Owner
  • Independent Solution Review

9. Unit, Integration, and Functional Tests

  • Leveraging Unit Test Code for Integration Testing
  • The Relationship Between Confirmations, Functional Tests, and Unit Tests
  • Key Collaborations Between Developers, QA, and Product Owner

10. TDD in an Agile Process

  • Automatic Unit Testing During Builds
  • Unit Testing Version Control, and Continuous Integration
  • Defect Elimination Using TDD
Learning Path
Ways to Attend
  • Attend a public course, if there is one available. Please check our schedule, or register your interest in joining a course in your area.
  • Private onsite Team training also available, please contact us to discuss. We can customise this course to suit your business requirements.

Private Team Training is available for this course

We deliver this course either on or off-site in various regions around the world, and can customise your delivery to suit your exact business needs. Talk to us about how we can fine-tune a course to suit your team's current skillset and ultimate learning objectives.

Private Team Training | Contact us

Technical ICT learning & mentoring services

Private Team Training

Our instructors are specialist consultants with vast real world experience and expertise allowing them to design and deliver client-focused courses for your organisation.

Learn more about our Private Team Training

What Our Clients Say

"Absolutely fantastic training. Thoroughly enjoyed it thanks to our highly enthusiastic tutor.  It wouldn't be an understatement to say that it was the best professional training that I have ever received."

 

Customised Linux with Networking

Live Online -  February 2022

 


“It was very positive. This course was 4 days but covered a semester worth of work if it was done in college. The labs were relevant and delegates were provided the lab/coursebook for further study and practice after the course finished. GuruTeam's course was excellent and provides a deeper understanding of the architecture and how it all works. The hands-on aspect was very helpful as it helped solidify the concepts as I went along."

 

Kubernetes Administration Certification - GTLFK

Live Online September 2024

 

 

 

“The Instructor was very knowledgeable, laid back and very approachable during the course. The environment setup was second to none.  Very easy to jump in and follow along with minimal pre-req setup."

Kubernetes Administration Certification - GTLFK

Onsite May 2024

 

“The experience was complete for me. I like how the training was sequenced - the slides organization, the examples and explanations and then the exercises. Time for exercises and support by the Instructor was great plus answering the questions and going out for answers and coming back with examples as brilliant. I loved how much I refreshed and how I learned and got inspired to improve stuff at work.”

 

Docker - GTDK1

Live Online December 2024

 

“Great instructor, who encouraged active participation. The breakout groups and exercises kept the group engaged and the content relevant to our own products”.

 

Site Reliability Engineering Foundation - GTDSRE

Live Online January 2022

 

 

 

"Intelligence is the ability to avoid doing work, yet
getting the work done"

Linus Torvalds, creator of Linux and GIT

Technical ICT learning & mentoring services

About GuruTeam

GuruTeam is a high-level ICT Learning, Mentoring and Consultancy services company. We specialise in delivering instructor-led on and off-site training in Blockchain, Linux, Cloud, Big Data, DevOps, Kubernetes, Agile, Software & Web Development technologies. View our Testimonials

Download our eBrochure
Our Accreditation Partners
  •  
  •  
  •  

 

Upcoming Courses

Kubernetes Admin

  3rd - 6th June 2025

 Live Online
 GMT +01:00  09:30 - 17:00 hrs

This Kubernetes Administration
Certification training course is
suitable for anyone who wants
to learn  the skills necessary to build and administer a Kubernetes cluster.

 

LEARN MORE

RUST PROGRAMMING INTRODUCTION

   6th - 9th May 2025

 Live Online
 GMT +01:00  09:30 - 17:00 hrs

This Rust Programming Introduction training course will help you understand what Rust applications look like, how to write Rust applications properly, and how to get the most out of the language and its libraries.
 

Learn More

NEW FAST TRACK PYTHON SERIES

April to June 2025

Live Online
GMT +01.00  09:30 - 17:00 hrs

Hit the ground running.....
GuruTeam’s new Python Fast Track series Instructor-led live online training
designed & delivered by industry experts.

Python Fast Track I Comprehensive
Python Fast Track II Expert
Python Fast Track III for Data Science

 

 

 

Learn More

GO PROGRAMMING INTRODUCTION

  19th - 22nd May 2025
  

Live Online
GMT +01:00  09:30 - 17:00 hrs

This Go Programming Introduction training course will help you understand how Go works, and immediately be more productive. If you are building a team using Go, this will be a great opportunity to get your team on the same page and speaking the same language.

Learn More

Newsletter

Stay up to date, receive updates on scheduled dates, new courses, offers, and events.

Subscribe to our Newsletter