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.


We are sorry, there is currently no availability on this course.

contact us for more information

Ways to Attend this Course

  • In the Classroom
  • Private Training

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.

Sorry, we are not taking bookings on this course at present

If you would like to contact us for more information on this course, you may do so here:

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

“Very interesting course from an excellent instructor. Highly technical and well delivered”

 

Introduction to Modern Security - GTJ50

Dec '17

“Super experience. The instructor spoke with great knowledge and experience. The materials will be invaluable in the real world”

 

Professional Cloud Service Manager Certification training- GTC13

Dec '17

“Very useful course, making complex topics more approachable and the instructor was very good at getting concepts across and engaging with delegates and our specific needs”

 

Optimising Java - GTJ47

Dec '17

“This was an excellent course and I found it very interesting and enjoyable.  The instructor was a font of knowledge on all aspects of Big Data and Analytics and was enthusiastic about sharing his knowledge”

 

Applied Data Science and Big Data Analytics - GTBD7

Nov '17

“The instructor was fantastic at explaining lessons with applicable work type examples.  He was enthusiastic with what he was teaching which made learning the course more enjoyable”

 

Linux Essentials Certification - GTU2

Oct '17

"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

19 - 22 Mar - LONDON

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

11 - 13 Mar

CORK

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

Learn More

Cloud Service Manager

29 - 31 Jan

DUBLIN

ITIL in the Cloud certification training, accredited by the Cloud Credential Council

Learn More

Introduction to Python 3

11 - 13 Mar

DUBLIN

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