Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 7, 2016
0 parents commit 35bcce1
Show file tree
Hide file tree
Showing 611 changed files with 26,369 additions and 0 deletions.
Binary file added 1864.zip
Binary file not shown.
11 changes: 11 additions & 0 deletions 1920.html
@@ -0,0 +1,11 @@
Chapter 1 Introduction to Test-Driven Development <br />
Chapter 2 Getting Started<br />
Chapter 3 Unit Testing: The Foundation of Test-Driven Development<br />
Chapter 4 Test-Driven Development for Servlets and JSPs<br />
Chapter 5 Developing User Interfaces Using Test Driven Development<br />
Chapter 6 Putting the Application Together<br />
Chapter 7 Improving the Process<br />
Chapter 8 Transitioning to Test-Driven Development<br />
App A Guide to Using the Source Code<br />
App B Answers to Hands On Exercises<br />
App C References
Binary file added 9781590593271.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,27 @@
Freeware License, some rights reserved

Copyright (c) 2005 Thomas Hammell, David Gold, and Tom Snyder

Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes the rights to use, copy, and modify the Software for personal use.
Users are also allowed and encouraged to submit corrections and modifications
to the Software for the benefit of other users.

It is not allowed to reuse, modify, or redistribute the Software for
commercial use in any way, or for a user�s educational materials such as books
or blog articles without prior permission from the copyright holder.

The above copyright notice and this permission notice need to be included
in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


15 changes: 15 additions & 0 deletions README.md
@@ -0,0 +1,15 @@
#Apress Source Code

This repository accompanies [*Test-Driven Development*](http://www.apress.com/9781590593271) by Thomas Hammell, David Gold, and Tom Snyder (Apress, 2005).

![Cover image](9781590593271.jpg)

Download the files as a zip using the green button, or clone the repository to your machine using Git.

##Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

##Contributions

See the file Contributing.md for more information on how you can contribute to this repository.
78 changes: 78 additions & 0 deletions TddBookSrc/CH4-RunTests.bat
@@ -0,0 +1,78 @@
@echo off

set lib=C:\Java\Projects\TddBook\TddBookSrc\dependencies
set jarDir=C:\Java\Projects\TddBook\TddBookSrc\dist\lib
set toolsJar=C:\j2sdk1.4.1_03\lib\tools.jar

echo %1

:setClassPath
set cp=%CLASSPATH%

set cp=%cp%;%lib%\/nekohtml.jar
set cp=%cp%;%lib%\/jasper-compiler.jar
set cp=%cp%;%lib%\/xmlParserAPIs.jar
set cp=%cp%;%lib%\/junit.jar
set cp=%cp%;%lib%\/servlet.jar
set cp=%cp%;%lib%\/jasper-runtime.jar
set cp=%cp%;%lib%\/easymock.jar
set cp=%cp%;%lib%\/httpunit.jar
set cp=%cp%;%lib%\/xercesImpl.jar
set cp=%cp%;%toolsJar%
set cp=%cp%;%lib%\/js.jar
set cp=%cp%;%jarDir%\/Ch4.jar
set cp=%cp%;%jarDir%\/Ch4Test.jar

:setClassPath for handsOn
set cp_handsOn=%CLASSPATH%

set cp_handsOn=%cp_handsOn%;%lib%\/nekohtml.jar
set cp_handsOn=%cp_handsOn%;%lib%\/jasper-compiler.jar
set cp_handsOn=%cp_handsOn%;%lib%\/xmlParserAPIs.jar
set cp_handsOn=%cp_handsOn%;%lib%\/junit.jar
set cp_handsOn=%cp_handsOn%;%lib%\/servlet.jar
set cp_handsOn=%cp_handsOn%;%lib%\/jasper-runtime.jar
set cp_handsOn=%cp_handsOn%;%lib%\/easymock.jar
set cp_handsOn=%cp_handsOn%;%lib%\/httpunit.jar
set cp_handsOn=%cp_handsOn%;%lib%\/xercesImpl.jar
set cp_handsOn=%cp_handsOn%;%toolsJar%
set cp_handsOn=%cp_handsOn%;%lib%\/js.jar
set cp_handsOn=%cp_handsOn%;%jarDir%\/Ch4_handsOn.jar
set cp_handsOn=%cp_handsOn%;%jarDir%\/Ch4Test_handsOn.jar

if '%1%'=='dist_handsOn' GOTO run-all-tests_handsOn
if '%1%'=='dist' GOTO run-all-tests
if '%1%'=='run-all-tests_handsOn' GOTO run-all-tests_handsOn
if '%1%'=='run-all-tests' GOTO run-all-tests
if '%1%'=='run-playerpick-jsp-tests' GOTO run-playerpick-jsp-tests
if '%1%'=='run-playerpick-servlet-tests' GOTO run-playerpick-servlet-tests
if '%1%'=='run-postResults-servlet-tests' GOTO run-postResults-servlet-tests


:run-all-tests_handsOn
java -classpath %cp_handsOn% com.apress.tddbook.Ch4TestSuite
GOTO end

:run-all-tests
java -classpath %cp% com.apress.tddbook.Ch4TestSuite
GOTO end

:run-playerpick-servlet-tests
java -classpath %cp% com.apress.tddbook.servlets.PlayerPickServletTester
GOTO end

:run-playerpick-jsp-tests
java -classpath %cp% com.apress.tddbook.jsps.PlayerPickJSPTester
GOTO end

:run-postResults-servlet-tests
java -classpath %cp_handsOn% com.apress.tddbook.servlets.PlayersResultsServletTester
GOTO end






:end
pause

0 comments on commit 35bcce1

Please sign in to comment.