Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-wq484 Total loading time: 0 Render date: 2024-04-28T17:01:10.787Z Has data issue: false hasContentIssue false

11 - Agile Testing with Mock Objects: A CAST-Based Approach

Published online by Cambridge University Press:  26 October 2009

John Watkins
Affiliation:
IBM Software Group, UK
Colin Cassidy
Affiliation:
Software Architect, Prolifics
Get access

Summary

SYNOPSIS

This case study examines the practical application of Java mock object frameworks to a system integration project that used test-first development and continuous computer-aided software testing (CAST).

Mock object frameworks allow developers to verify the way in which units of software interact – by replacing any dependencies with software that simulates them in a controlled manner. The case study explores the problems encountered with this approach and describes the subsequent development of SevenMock – a simple new framework that overcomes many of these issues.

Introduction

My name is Colin Cassidy. I'm a software architect for Prolifics – a systems integration company that specializes in IBM technologies. Coming from a software development background, I have ten years' experience in the IT industry. I have performed a number of roles, including software architect, systems analyst, developer, and development process engineer. This has been mainly in the retail, telecom, and finance sectors.

My interest in software testing stems from a desire to build better software and to find better ways of building that software. Having practiced development and testing on a number of project types ranging from the very agile to the very structured, I have experienced the problems caused by too much automated testing as well as those caused by too little.

This case study describes a Java system integration project that used test-first development and continuous automated regression testing.

Type
Chapter
Information
Agile Testing
How to Succeed in an Extreme Testing Environment
, pp. 72 - 80
Publisher: Cambridge University Press
Print publication year: 2009

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×