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

“I particularly liked the heavy hands on sessions that went on with the training. Other than that, really liked Mark's training style. His experience in the field really shines through.”

 

Docker - GTDK1

Feb ‘19

“Instructor's ability to demonstrate new features that are not part of the course help show his mastery as well as prepare us for changes in the technology. Great work.

 

Using Docker & Kubernetes in Production - GTK8SG

Oct ‘18


“This course was an excellent insight into the Cloud Service Management world and equips me with the tools to go back to my company and build upon it.”

 

Cloud Service Manager - GTC13

Jan ‘19

 


“The course was great. The instructor is true Kubernetes Ninja. Loved the hands on approach. Very happy with the course.”

 

Using Docker & Kubernetes in Production - GTK8SG

Oct ‘18

“Excellent instructor. You can tell he really understands the concepts he's presenting and is very passionate about his work. He answered every question we asked and presented the course in an interesting and involving manner.”

 

Spring Boot Development - GTIT40

Nov ‘18

"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 Administration

1 - 4 Apr - DUBLIN

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

CompTIA Network+ FastTrack

More dates coming soon

This fast-paced course teaches the essentials of networking and helps to prepare the student for the CompTIA Network+ certification.

Learn More

Applied Data Science with Python

More dates coming soon

Learn about the theoretical and practical aspects of using Python in the realm of Data Science, Business Analytics, and Data Logistics

Learn More

Introduction to Python 3

More dates coming soon

Python is a powerful and popular object-oriented programming/scripting language with many high quality libraries.

Learn More

Newsletter

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

Subscribe to our Newsletter