Mastering Test-Driven Development using Junit (TT3500)

Developers who wish to get up and running on test-driven development immediately

Prerequisite

  • Familiarity with Java and object-oriented technologies
  • Real-world programming experience is a must

Expected Duration
5 day

Description

JUnit and other testing frameworks based on JUnit such as Cactus, make it possible to write higher-quality Java code. It is a powerful tool designed to support robust, predictable, and automated testing development in the Java enterprise application arena.

In this comprehnsive hands-on Test-Driven Development(TDD)/JUnit training course, developers will get up and running with essential test-driven development programming skills using JUnit and various open-source testing frameworks. Using test-driven development techniques, you will learn the best practices for writing great programs in Java and cover essential TDD topics and skills.

Objective

1. Test-Driven Development

  • Problem
  • JUnit Solution
  • Test, Code, Refactor, Repeat
  • ROI of TDD
  • Tools to support TDD
  • Automation and Coverage
  • Working With Coverage Analysis
  • Rationale
  • Advantages
  • Tools

2. Testing Frameworks

  • Integration Testing
  • Presentation Testing
  • Integration Testing
  • jWebUnit
  • jWebUnit/HttpUnit
  • Testing Struts
  • Design of a Struts Application
  • StrutsTestCase
  • Testing strategies

3. TDD Tools and Techniques

  • Mock Objects and EasyMock
  • Decoupling with Mock Objects
  • Mock Object Frameworks
  • EasyMock and JUnit
  • Dependency Injection, Spring, and Testing
  • Dependency Injection and IoC
  • Spring Framework
  • Mock Objects and Spring
  • State-Based vs. Interaction-Based Testing
  • State-Based Testing
  • Interaction-Based Testing
  • Dependencies vs. Mock Objects
  • Interaction-Based Testing
  • JUnit and Ant
  • Running JUnit Tests from Ant
  • Generating a JUnitReport

4. Improving Code Quality Through Refactoring

  • Refactoring
  • Sample of Refactorings
  • Refactoring and Testing
  • Suggested Refactoring
  • Impact of Refactoring

5. Additional Testing Frameworks

  • Database Testing
  • Issues of Database Testing
  • Persistence Mechanisms
  • DBUnit

6. TDD and Spring (Optional)

  • Spring Framework
  • Spring Basics
  • Configuring a Spring Bean
  • Property Editors
  • Constructor Injection vs. Setter Injection
  • Wiring the Collaborators

7. Advanced TDD Topics (Optional)

  • Design Patterns
  • Code that Feels Wrong
  • Refactoring to Design Patterns
  • Abstract Factory Design Patterns
  • Adapter Design Patterns
  • Strategy Design Patterns
  • Testing Business Rules
  • Adding Testing to Your Build Process
  • Ant JUnit Tag
  • Ant Build File
  • Continuous Integration

8. Additional Testing Frameworks

  • Server-Side Testing
  • Cactus

SUBSCRIPTION COST


$2,495.00

Select Course Options

 

NEED HELP OR NOT SURE?