Duration: 3 days
Course code: SS-AG-011
Audience
This course is for Java developers who want to become proficient in test driven development.
- Java developers
- Architects
- Testers
- Consultants
Prerequisites
Attendees must be proficient in Java
Description
Test Driven Development with Eclipse Training course teaches the popular and productive Test Driven Development (TDD) techniques in the context of Eclipse.In this course, participants learn how to write reliable, bug-free applications using Test Driven Development. This hands-on course brings together a variety of techniques, strategies and patterns of Test Driven Development. You will learn how to startapplying the Test Driven Development on your project identifying the tests from requirements and then applying the heartbeat of test-code-refactor steps. The course will practically introduce refactorings that lead to better and reliable designs and code and also introduce a number of testing patterns and strategies.
This is a highly hands-on course, with programming labs constituting about 60% of the course. The labs are using Eclipse IDE.
Objectives
Upon completion of this course, attendees will be able to:
- Apply Test Driven Development with Eclipse
- Identify tests
- Organize and execute tests leading to clear designs and reliable code
- Recognize "bad smells" and refactor code and tests
- Get the maximum value out of the Eclipse for Test Driven Development
Outline for Test Driven Development TDD with Eclipse Training Course
Key Ideas of Test Driven Development
- Why Test Driven Development?
- Automating Tests
- Fundamentals of Test-First Approach
- The Process
- The Heartbeat: Test-Code-Refactor
Tools of the Trade: JUnit
- Writing Tests with JUnit
- Test Cases
- Assertions
- Set-up and Tear-Down
- Test Suites
- Organizing Tests
- Reporting Results
- Eclipse and JUnit
- Ant and JUnit
Test Driven Development
- The Starting Point: Requirements
- Creating Tests from Requirements
- Selecting the First Test
- Failing the Test
- Passing the test
- The 'Next' Test
- Refactorings: Changing the Design in Small Steps
- Introducing Error Handling
- Improving the Test Driven Development Cycles
Patterns and Strategies for Test Driven Development
- The Starting Point: Requirements
- Creating Tests from Requirements
- Selecting the First Test
- Failing the Test
- Passing the test
- The 'Next' Test
- Refactorings: Changing the Design in Small Steps
- Introducing Error Handling
- Improving the Test Driven Development Cycles
Applying Refactorings
- Code Smells
- Migrate Data
- Extract Method
- Inline Method
- Extract Interface
- Move Method
- Method Object
- Add Parameter
- Method Parameter to Constructor Parameter
- Refactoring using Eclipse
Testing Database Applications
- Unit Testing Database
- Creating Database Tests
- Database Testing Patterns
Testing Server Side Applications - Overview
- Testing the Server Side
- Testing Web Applications
- Testing EJB Applications