rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780596007430

JUnit Pocket Guide

by
  • ISBN13:

    9780596007430

  • ISBN10:

    0596007434

  • Format: Paperback
  • Copyright: 2004-10-01
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $9.95 Save up to $0.36
  • Buy New
    $9.94

    USUALLY SHIPS IN 2-3 BUSINESS DAYS

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.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program