Test Driven Development in a Java Environment

Page Sections

About this course

Course typePremium

Course codeQATDDJAVA

Duration2 Days

This course is designed to bring about a fundamental change to the way developers go about their day-to-day business of writing software code. Instead of thinking about unit tests as at best an afterthought, having already written the application code, the course aims to turn this practice on its head, and get programmers to write tests before the code to be tested.

Originating in the Agile methodology of Extreme Programming, Test Driven Development (TDD) has become accepted as a mainstream best practice, and is being adopted by major organisations as means of improving code quality and developer productivity.
Because Test Driven Development involves such a major inversion of most developers' ways of thinking and working, the course is strongly exercise based - it is necessary to spend a large part of the two days of the workshop practicing test-first development.
Typically developers find TDD initially strange, but go on to find it quite liberating, and become 'test infected' (unable to write code without having first devised unit tests.)
The exercises are based on the Java programming language, and use the tools most central to TDD in Java, including Eclipse (students are free to use tools they are comfortable with), JUnit and some of its extensions, Hamcrest, mocking with jMock and developing system level TDD scripts using fitnesse

Prerequisites

Delegates will learn how to

At the end of this course you will have:

• The ability to take the TDD approach to software development
• An understanding of the key techniques and strategies of TDD, and principles of refactoring code
• The ability to write unit tests in JUnit versions 4 and 3
• The ability to use mock objects in unit tests
• Work with fitnesse to develop system level tests
• Track down bugs quickly using JUnit and fitnesse

The workshop is strongly oriented towards lab work. In order to reverse deeply ingrained habits, of writing code first and tests only as a possible afterthought, it is essential to give developers as much time as possible working in a test-first manner.

Delivery method

Classroom / Attend from Anywhere

Find dates and prices

Online booking is currently not available for this course, to find out more please call us on 01753 898320 or email us at info@qa.com to discuss how we can help.

Related learning information

We pride ourselves on the unrivalled quality of the training delivered by our experienced learning teams. Every course will teach relevant new skills that can be applied back in the workplace to improve performance.

QA AuthoredWe offer over 500 QA Authored courses, designed by our subject-matter experts to complement the courses offered by leading vendors and develop skills that are immediately applicable in the workplace.

Resources to aid learningWith QA you will have access to a myQA account to manage your schedule and access extra content. We also provide exclusive training videos on demand and free revision emails for certain courses.