Simple Cart Cookbook

Development practices and guidelines for Simple Cart

Daniel Watrous

Copyright (c) 2005, Daniel Watrous All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Simple Cart nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Abstract

The purpose of this Cookbook is to help in coordinating and documenting the development of Simple Cart.


Table of Contents

1. Change Log
1. Introduction
1.1. About the project
1.2. How to get involved
1.3. About this Cookbook
1.3.1. What this book contains
1.3.2. What this book does not contain
1.4. Project Forum
2. Download and Build from Source
2.1. Preliminaries
2.1.1. Tools required to build Simple Cart
2.1.2. Tools included in Simple Cart repository
2.1.3. Which libraries are required and used by Simple Cart
2.2. Checkout Sources from Subversion
2.3. Build Process
2.3.1. How ANT is integrated with Simple Cart
2.3.2. How to generate Simple Cart documentation
2.3.3. What if something goes wrong?
2.4. JUnit Test Cases
2.4.1. Business Logic (Domain Model) Testing
2.4.2. Hibernate Testing Considerations
2.4.3. Struts Testing Considerations
2.5. Testing within a Servlet Container
2.5.1. Testing inside Apache Tomcat
2.6. Making a Release
2.6.1. Repository Structure
2.6.2. Version Numbers
2.6.3. Goals of the Release
2.6.4. Testing Prior to a Release
2.6.5. Create a Tag and Branch
3. Simple Cart Design: Overview
4. Model Design
5. View Design
6. Controller Design
7. Testing Procedures
8. Extending Simple Cart
9. Issue Management
A. Tools needed to develop with Simple Cart
A.1. Subversion
A.2. Apache Ant

List of Tables

1. Changes done
2.1. Version Number Definition