JUnit Pocket Guide

by
Format: Paperback
Pub. Date: 2004-10-01
Publisher(s): Oreilly & Associates Inc
List Price: $9.95

Buy New

Usually Ships in 2-3 Business Days.
$9.85

Rent Book

Select for Price
There was a problem. Please try again later.

Rent Digital

Rent Digital Options
Online:1825 Days access
Downloadable:Lifetime Access
$9.59
*To support the delivery of the digital material to you, a digital delivery fee of $3.99 will be charged on each digital item.
$9.59*

Used Book

We're Sorry
Sold Out

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

With today's increased workloads and short development cycles, unit test frameworks are increasingly important for building robust, high-quality software. JUnit is the most popular framework for unit testing in Java, and no one knows more about it that its co-creator, Kent Beck. This handy little reference brings together all the bits of hard-to-remember information, syntax, and rules for working with JUnit, as well as delivering the sage advice that can only come from a technology's creator. Anyone doing unit testing in Java will find this reference an invaluable addition to their bookshelf, or their pocket!

Author Biography

Kent Beck is the founder and director of Three Rivers Institute (TRI). He has pioneered patterns for software development, the XUnit family of test frameworks, the HotDraw drawing editor framework, CRC cards, refactoring, and most recently eXtreme Programming (XP). He is the author of Extreme Programming Explained, Planning Extreme Programming, and The Smalltalk Best Practice Patterns. He lives on 20 acres in rural southern Oregon with his wife, five children, four dogs, two sheep, and a variable number of domestic fowl.

Table of Contents

Automating Testsp. 1
Why Test?p. 3
Timep. 5
"Perfect" is a Verbp. 8
JUnit's Goalsp. 8
Fixturesp. 12
More setUp() than tearDown()p. 14
Variationsp. 15
Suite-Level Setupp. 15
Testing Exceptionsp. 16
JUnit's Implementationp. 18
JUnit APIp. 20
Overviewp. 20
Assertp. 21
Testp. 24
TestCasep. 25
TestSuitep. 26
TestResultp. 27
Package Structurep. 29
Test-First Programmingp. 29
Factorial Examplep. 31
Test-First Programming in Practicep. 33
Stubsp. 34
Stubs and Good Designp. 35
Self-Shuntingp. 36
Other Uses for Testsp. 37
Debugging Testsp. 37
Learning an API with Testsp. 38
Documenting Assumptions with Testsp. 39
Cross-Team Testsp. 40
Story of JUnitp. 42
Extending JUnitp. 45
Extensionsp. 46
JUnit and Antp. 47
More About Running Testsp. 49
Formatting Feedbackp. 49
Conclusionp. 52
Running JUnit Standalonep. 52
Textp. 52
AWTp. 53
Swingp. 55
JUnit and IDEsp. 56
Eclipsep. 56
JBuilderp. 62
IntelliJ IDEAp. 66
Test Infectionp. 72
Bibliographyp. 76
Table of Contents provided by Rittenhouse. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.