1 option
Java extreme programming cookbook / Eric M. Burke and Brian M. Coyner.
Van Pelt Library QA76.73 .J38 B876 2003
Available
- Format:
- Book
- Author/Creator:
- Burke, Eric M.
- Language:
- English
- Subjects (All):
- Java (Computer program language).
- eXtreme programming.
- Physical Description:
- xii, 275 pages : illustrations ; 24 cm
- Edition:
- First edition.
- Place of Publication:
- Beijing ; Cambridge [Mass.] : O'Reilly, 2003.
- Summary:
- Extreme Programming does not mean programming naked while rollerblading down the side of the Grand Canyon. It's a new approach to software development that is both radical and common-sense. Unlike many software development methodologies, XP has been accepted quickly because its core practices -- particularly code sharing, test-first development, and continuous integration -- resonated immediately with software developers everywhere. Instead of impressing developers with a body of theory, XP got programmers to say, "Yeah, that's how I'd like to work." The Java Extreme Programming Cookbook shows how to use the many tools that support extreme programming in Java. Like O'Reilly's other cookbooks, the Java Extreme Programming Cookbook is an extremely practical collection of recipes that show you how to solve common problems. And like XP itself, this book offers a wealth of common-sense advice that helps you become more effective: it shows you how to set up a consistent build environment, do unit testing, test servlets effectively, measure performance, and much more. If you need to jump-start an extreme programming environment, if you've been wanting to investigate XP but haven't known where to start, or if you've implemented an XP environment that isn't quite working to your satisfaction, this book will be invaluable.
- Contents:
- 1. XP Tools 1
- Java and XP 1
- Tools and Philosophies 2
- Open Source Toolkit 4
- Coding 14
- Unit Testing 17
- Refactoring 22
- Design 24
- Builds 26
- 3. Ant 28
- 3.1 Writing a Basic Buildfile 29
- 3.2 Running Ant 31
- 3.3 Providing Help 32
- 3.4 Using Environment Variables 34
- 3.5 Passing Arguments to a Buildfile 36
- 3.6 Checking for the Existence of Properties 39
- 3.7 Defining a Classpath 40
- 3.8 Defining Platform-Independent Paths 42
- 3.9 Including and Excluding Files 43
- 3.10 Implementing Conditional Logic 44
- 3.11 Defining a Consistent Environment 45
- 3.12 Preventing Build Breaks 46
- 3.13 Building JAR Files 47
- 3.14 Installing JUnit 48
- 3.15 Running Unit Tests 50
- 3.16 Running Specific Tests 53
- 3.17 Generating a Test Report 54
- 3.18 Checking Out Code from CVS 55
- 3.19 Bootstrapping a Build 56
- 4. JUnit 59
- 4.2 Running JUnit 62
- 4.3 assertXXX() Methods 65
- 4.4 Unit Test Granularity 68
- 4.5 Set Up and Tear Down 69
- 4.6 One-Time Set Up and Tear Down 71
- 4.7 Organizing Tests into Test Suites 73
- 4.8 Running a Test Class Directly 74
- 4.9 Repeating Tests 75
- 4.10 Test Naming Conventions 76
- 4.11 Unit Test Organization 77
- 4.12 Exception Handling 79
- 4.13 Running Tests Concurrently 80
- 4.14 Testing Asynchronous Methods 81
- 4.15 Writing a Base Class for Your Tests 84
- 4.16 Testing Swing Code 85
- 4.17 Testing with the Robot 92
- 4.18 Testing Database Logic 93
- 4.19 Repeatedly Testing the Same Method 94
- 5. HttpUnit 99
- 5.2 Preparing for Test-First Development 100
- 5.3 Checking a Static Web Page 104
- 5.4 Following Hyperlinks 106
- 5.5 Writing Testable HTML 107
- 5.6 Testing HTML Tables 108
- 5.7 Testing a Form Tag and Refactoring Your Tests 111
- 5.8 Testing for Elements on HTML Forms 113
- 5.9 Submitting Form Data 116
- 5.10 Testing Through a Firewall 120
- 5.11 Testing Cookies 120
- 5.12 Testing Secure Pages 122
- 6. Mock Objects 124
- 6.1 Event Listener Testing 125
- 6.2 Mock Object Self-Validation 130
- 6.3 Writing Testable JDBC Code 133
- 6.4 Testing JDBC Code 135
- 6.5 Generating Mock Objects with MockMaker 138
- 6.6 Breaking Up Methods to Avoid Mock Objects 140
- 6.7 Testing Server-Side Business Logic 142
- 7. Cactus 145
- 7.1 Configuring Cactus 148
- 7.2 Setting Up a Stable Build Environment 149
- 7.3 Creating the cactus.properties File 155
- 7.4 Generating the cactus.properties File Automatically 157
- 7.5 Writing a Cactus Test 159
- 7.6 Submitting Form Data 162
- 7.7 Testing Cookies 167
- 7.8 Testing Session Tracking Using HttpSession 170
- 7.9 Testing Servlet Initialization Parameters 176
- 7.10 Testing Servlet Filters 177
- 7.11 Securing Cactus Tests 180
- 7.12 Using HttpUnit to Perform Complex Assertions 183
- 7.13 Testing the Output of a JSP 183
- 7.14 When Not to Use Cactus 185
- 7.15 Designing Testable JSPs 185
- 8. JUnitPerf 187
- 8.1 When to Use JUnitPerf 188
- 8.2 Creating a Timed Test 189
- 8.3 Creating a LoadTest 192
- 8.4 Creating a Timed Test for Varying Loads 194
- 8.5 Testing Individual Response Times Under Load 195
- 8.6 Running a TestSuite with Ant 197
- 8.7 Generating JUnitPerf Tests 198
- 9. XDoclet 201
- 9.1 Setting Up a Development Environment for Generated Files 202
- 9.2 Setting Up Ant to Run XDoclet 204
- 9.3 Regenerating Files That Have Changed 207
- 9.4 Generating the EJB Deployment Descriptor 208
- 9.5 Specifying Different EJB Specifications 212
- 9.6 Generating EJB Home and Remote Interfaces 212
- 9.7 Creating and Executing a Custom Template 217
- 9.8 Extending XDoclet to Generate Custom Files 220
- 9.9 Creating an Ant XDoclet Task 222
- 9.10 Creating an XDoclet Tag Handler 226
- 9.11 Creating a Template File 232
- 9.12 Creating an XDoclet xdoclet.xml File 234
- 9.13 Creating an XDoclet Module 237
- 10. Tomcat and JBoss 239
- 10.1 Managing Web Applications Deployed to Tomcat 239
- 10.2 Hot Deploying to Tomcat 240
- 10.3 Removing a Web Application from Tomcat 242
- 10.4 Checking If a Web Application Is Deployed 244
- 10.5 Starting Tomcat with Ant 245
- 10.6 Stopping Tomcat with Ant 252
- 10.7 Setting Up Ant to Use Tomcat's Manager Web Application 253
- 10.8 Hot-Deploying to JBoss 254
- 10.9 Hot-Deploying a Web Application to JBoss 255
- 10.10 Testing Against Multiple Servers 256
- 11. Additional Topics 258
- 11.1 Testing XML Files 258
- 11.2 Enterprise JavaBeans Testing Tools 259
- 11.3 Avoiding EJB Testing 260
- 11.4 Testing Swing GUIs 262
- 11.5 Testing Private Methods 263.
- Notes:
- Includes index.
- "Extreme programming in the real world" -- Cover.
- ISBN:
- 0596003870
- OCLC:
- 51315531
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.