
JUnit Pocket Guide
by Beck, KentBuy New
Rent Book
Rent Digital
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
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 Tests | p. 1 |
Why Test? | p. 3 |
Time | p. 5 |
"Perfect" is a Verb | p. 8 |
JUnit's Goals | p. 8 |
Fixtures | p. 12 |
More setUp() than tearDown() | p. 14 |
Variations | p. 15 |
Suite-Level Setup | p. 15 |
Testing Exceptions | p. 16 |
JUnit's Implementation | p. 18 |
JUnit API | p. 20 |
Overview | p. 20 |
Assert | p. 21 |
Test | p. 24 |
TestCase | p. 25 |
TestSuite | p. 26 |
TestResult | p. 27 |
Package Structure | p. 29 |
Test-First Programming | p. 29 |
Factorial Example | p. 31 |
Test-First Programming in Practice | p. 33 |
Stubs | p. 34 |
Stubs and Good Design | p. 35 |
Self-Shunting | p. 36 |
Other Uses for Tests | p. 37 |
Debugging Tests | p. 37 |
Learning an API with Tests | p. 38 |
Documenting Assumptions with Tests | p. 39 |
Cross-Team Tests | p. 40 |
Story of JUnit | p. 42 |
Extending JUnit | p. 45 |
Extensions | p. 46 |
JUnit and Ant | p. 47 |
More About Running Tests | p. 49 |
Formatting Feedback | p. 49 |
Conclusion | p. 52 |
Running JUnit Standalone | p. 52 |
Text | p. 52 |
AWT | p. 53 |
Swing | p. 55 |
JUnit and IDEs | p. 56 |
Eclipse | p. 56 |
JBuilder | p. 62 |
IntelliJ IDEA | p. 66 |
Test Infection | p. 72 |
Bibliography | p. 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.