Test Driven Development

Test Driven Development
Start Date10th May 2018
Course CodeSS18-17
Full Fee
Duration2 Days
Network Member Subsidised Fee€510.00
Download Course PDF  
  Course expired

Programme Overview
All developers want to build good quality software but not all developers test their software as they go along. Why not?
A common explanation is "I don't have time to write tests!" The more pressure they feel, the fewer tests they write.

This leads to less accurate and stable code, less productivity, less confidence and, ultimately, more pressure. It's a vicious cycle.

This course is designed to help you break out of the cycle by embracing unit-testing and, in particular, test-driven development. We will introduce the techniques and the tools necessary to prove your code as you go along.
Course Objectives and Learning Outcomes
Creating tests using JUnit
  • Using assertions and Hamcrest matchers
  • Adopting a test-driven approach to development
  • Using stubs and mock objects
  • Writing integration tests
  • Testing the user interface
Who should attend
Application developers working in Java, C++ or C# who want to improve the quality of their software deliverables as a component and system level.
Course Content

Introduction to JUnit

  • Getting started with unit testing using JUnit
  • Generating test stubs
  • Using assertions
  • Running tests
  • Test statuses
  • Dealing with exceptions
  • Best practice

Going Further with Unit Testing

  • Organizing projects
  • Performing setup and teardown operations
  • Using Hamcrest matchers
  • Defining a custom matcher
  • Test suites

TDD and Agile Development

  • Understanding the TDD process
  • Test, code, refactor
  • TDD strategies
  • Refactoring techniques
  • Testing patterns
  • Best practice

Unit Testing with Mock Objects

  • Managing dependencies
  • Defining test doubles
  • Stubs, mocks, dummies, and fakes
  • Tool support – JMock, EasyMock, and Mockito

Additional testing techniques

  • Integration testing
  • Testing the user interface using Selenium WebDriver
  • Behaviour-driven design (BDD)
  • Using JBehave for BDD
Other course details
This course is based on Java, alternative versions are available for C++ and C#.
About the Trainer
Neueda has been delivering training solutions since 2002 and our experienced and passionate specialists love to share and teach in a hands-on, collaborative environment. Our instructors have the expertise and experience building large-scale software solutions using the technologies they write and speak about.

Andy Olsen is a consultant, developer, and trainer based in the UK and he has been creating and delivering training courses in the UK, Europe, the United States, and Asia since 1990.

During that time, he has authored many official courses for major software vendors including Microsoft, Sun, and Oracle.

In recent years, Andy has been immersed in HTML5 and mobile development. In November 2011 he wrote and delivered a series of HTML5 webcasts for Microsoft that was distributed worldwide, and earlier in the year he developed an HTML5 training course for delivery in Norway, the UK, and Ireland.