Books & Videos

Table of Contents

  1. Chapter 1 XP Tools

    1. Java and XP

    2. Tools and Philosophies

    3. Open Source Toolkit

  2. Chapter 2 XP Overview

    1. What Is XP?

    2. Coding

    3. Unit Testing

    4. Refactoring

    5. Design

    6. Builds

  3. Chapter 3 Ant

    1. Introduction

    2. Writing a Basic Buildfile

    3. Running Ant

    4. Providing Help

    5. Using Environment Variables

    6. Passing Arguments to a Buildfile

    7. Checking for the Existence of Properties

    8. Defining a Classpath

    9. Defining Platform-Independent Paths

    10. Including and Excluding Files

    11. Implementing Conditional Logic

    12. Defining a Consistent Environment

    13. Preventing Build Breaks

    14. Building JAR Files

    15. Installing JUnit

    16. Running Unit Tests

    17. Running Specific Tests

    18. Generating a Test Report

    19. Checking Out Code from CVS

    20. Bootstrapping a Build

  4. Chapter 4 JUnit

    1. Introduction

    2. Getting Started

    3. Running JUnit

    4. assertXXX( ) Methods

    5. Unit Test Granularity

    6. Set Up and Tear Down

    7. One-Time Set Up and Tear Down

    8. Organizing Tests into Test Suites

    9. Running a Test Class Directly

    10. Repeating Tests

    11. Test Naming Conventions

    12. Unit Test Organization

    13. Exception Handling

    14. Running Tests Concurrently

    15. Testing Asynchronous Methods

    16. Writing a Base Class for Your Tests

    17. Testing Swing Code

    18. Avoiding Swing Threading Problems

    19. Testing with the Robot

    20. Testing Database Logic

    21. Repeatedly Testing the Same Method

  5. Chapter 5 HttpUnit

    1. Introduction

    2. Installing HttpUnit

    3. Preparing for Test-First Development

    4. Checking a Static Web Page

    5. Following Hyperlinks

    6. Writing Testable HTML

    7. Testing HTML Tables

    8. Testing a Form Tag and Refactoring Your Tests

    9. Testing for Elements on HTML Forms

    10. Submitting Form Data

    11. Testing Through a Firewall

    12. Testing Cookies

    13. Testing Secure Pages

  6. Chapter 6 Mock Objects

    1. Introduction

    2. Event Listener Testing

    3. Mock Object Self-Validation

    4. Writing Testable JDBC Code

    5. Testing JDBC Code

    6. Generating Mock Objects with MockMaker

    7. Breaking Up Methods to Avoid Mock Objects

    8. Testing Server-Side Business Logic

  7. Chapter 7 Cactus

    1. Introduction

    2. Configuring Cactus

    3. Setting Up a Stable Build Environment

    4. Creating the cactus.properties File

    5. Generating the cactus.properties File Automatically

    6. Writing a Cactus Test

    7. Submitting Form Data

    8. Testing Cookies

    9. Testing Session Tracking Using HttpSession

    10. Testing Servlet Initialization Parameters

    11. Testing Servlet Filters

    12. Securing Cactus Tests

    13. Using HttpUnit to Perform Complex Assertions

    14. Testing the Output of a JSP

    15. When Not to Use Cactus

    16. Designing Testable JSPs

  8. Chapter 8 JUnitPerf

    1. Introduction

    2. When to Use JUnitPerf

    3. Creating a Timed Test

    4. Creating a LoadTest

    5. Creating a Timed Test for Varying Loads

    6. Testing Individual Response Times Under Load

    7. Running a TestSuite with Ant

    8. Generating JUnitPerf Tests

  9. Chapter 9 XDoclet

    1. Introduction

    2. Setting Up a Development Environment for Generated Files

    3. Setting Up Ant to Run XDoclet

    4. Regenerating Files That Have Changed

    5. Generating the EJB Deployment Descriptor

    6. Specifying Different EJB Specifications

    7. Generating EJB Home and Remote Interfaces

    8. Creating and Executing a Custom Template

    9. Extending XDoclet to Generate Custom Files

    10. Creating an Ant XDoclet Task

    11. Creating an XDoclet Tag Handler

    12. Creating a Template File

    13. Creating an XDoclet xdoclet.xml File

    14. Creating an XDoclet Module

  10. Chapter 10 Tomcat and JBoss

    1. Introduction

    2. Managing Web Applications Deployed to Tomcat

    3. Hot-Deploying to Tomcat

    4. Removing a Web Application from Tomcat

    5. Checking If a Web Application Is Deployed

    6. Starting Tomcat with Ant

    7. Stopping Tomcat with Ant

    8. Setting Up Ant to Use Tomcat’s Manager Web Application

    9. Hot-Deploying to JBoss

    10. Hot-Deploying a Web Application to JBoss

    11. Testing Against Multiple Servers

  11. Chapter 11 Additional Topics

    1. Introduction

    2. Testing XML Files

    3. Enterprise JavaBeans Testing Tools

    4. Avoiding EJB Testing

    5. Testing Swing GUIs

    6. Testing Private Methods

  1. Colophon