𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

JUnit in Action, Second Edition

✍ Scribed by Petar Tahchiev, Felipe Leme, Vincent Massol, Gary Gregory


Publisher
Manning Publications
Year
2010
Tongue
English
Leaves
503
Edition
Second Edition
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


When JUnit was first introduced a decade ago by Kent Beck and Erich Gamma, the Agile movement was in its infancy, "Test Driven Development" was unknown, and unit testing was just starting to move into the typical developer's vocabulary. Today, most developers acknowledge the benefits of unit testing and rely on the increasingly sophisticated tools now available. The recently released JUnit 4.5 represents the state of the art in unit testing frameworks, and provides significant new features to improve the Java development process.JUnit in Action, Second Edition is an up-to-date guide to unit testing Java applications (including Java EE applications) using the JUnit framework and its extensions. This book provides techniques for solving real-world problems such as testing AJAX applications, using mocks to achieve testing isolation, in-container testing for Java EE and database applications, and test automation.Written to help readers exploit JUnit 4.5, the book covers recent innovations such as the new annotations that simplify test writing, improved exception handling, and the new assertion methods. You'll also discover how to use JUnit extensions to test new application styles and frameworks including Ajax, OSGi, and HTML-based presentation layers.Using a sample-driven approach, various unit testing strategies are covered, such as how to unit test EJBs, database applications, and web applications. Also addressed are testing strategies using freely available open source frameworks and tools, and how to unit test in isolation with Mock Objects. The book will also bring you up to speed on the latest thinking in TDD, BDD, Continuous Integration, and other practices related to unit testing.

✦ Table of Contents


front matter......Page 1
brief contents......Page 8
contents......Page 10
preface......Page 20
preface to the first edition......Page 22
acknowledgments......Page 24
about this book......Page 26
about the authors......Page 31
about the cover illustration......Page 33
Part 1 - JUnit essentials......Page 36
1 -
JUnit jump-start......Page 38
2 -
Exploring core JUnit......Page 49
3 -
Mastering JUnit......Page 60
4 -
Software testing principles......Page 88
Part 2 -
Different testing strategies......Page 100
5 -
Test coverage anddevelopment......Page 102
6 -
Coarse-grained testingwith stubs......Page 119
7 -
Testing with mock objects......Page 134
8 -
In-container testing......Page 161
Part 3 -
JUnit and the build process......Page 170
9
- Running JUnit testsfrom Ant......Page 172
10 - Running JUnit testsfrom Maven2......Page 187
11 -
Continuousintegration tools......Page 204
Part 4 -
JUnit extensions......Page 222
12 -
Presentation-layer testing......Page 224
13 -
Ajax testing......Page 259
14 -
Server-side Javatesting with Cactus......Page 294
15 -
Testing JSF applications......Page 327
16 -
Testing OSGi components......Page 345
17 -
Testing database access......Page 361
18 -
Testing JPA-basedapplications......Page 395
19 -
JUnit on steroids......Page 424
appendix A: Differences betweenJUnit 3 and JUnit 4......Page 448
appendix B: Extending the JUnitAPI with customrunners and matchers......Page 459
appendix C: The source code forthe book......Page 473
appendix D: JUnit IDE integration......Page 477
appendix E: Installing software......Page 487
index......Page 492


πŸ“œ SIMILAR VOLUMES


JUnit in Action, Second Edition
✍ Petar Tahchiev, Felipe Leme, Vincent Massol, Gary Gregory πŸ“‚ Library πŸ“… 2010 πŸ› Manning Publications 🌐 English

<DIV><p>When JUnit was first introduced a decade ago by Kent Beck and Erich Gamma, the Agile movement was in its infancy, "Test Driven Development" was unknown, and unit testing was just starting to move into the typical developer's vocabulary. Today, most developers acknowledge the benefits of unit

jQuery in Action, Second Edition
✍ Bear Bibeault, Yehuda Katz πŸ“‚ Library πŸ“… 2010 🌐 English

A really good web development framework anticipates your needs. jQuery does more-it practically reads your mind. Developers fall in love with this JavaScript library the moment they see 20 lines of code reduced to three. jQuery is concise and readable.jQuery in Action, Second Edition is a fast-paced

Android in Action, Second Edition
✍ Frank Ableson, Robi Sen πŸ“‚ Library πŸ“… 2011 πŸ› Manning Publications 🌐 English

Android is a free, open source, Java-based mobile platform developed by Google. Android in Action, Second Edition prepares the reader to embrace the Android mobile platform in easy-to-understand language and builds on this foundation with reusable Java code examples. It's ideal for corporate develop

Mathematica in Action, Second Edition
✍ Stan Wagon πŸ“‚ Library πŸ“… 1999 πŸ› TELOS 🌐 English

"Mathematica in Action, 2nd Edition," is designed both as a guide to the extraordinary capabilities of Mathematica as well as a detailed tour of modern mathematics by one of its leading expositors, Stan Wagon. Ideal for teachers, researchers, mathematica enthusiasts. This second edition of the highl

Spark in Action, Second Edition
✍ Jean-Georges Perrin πŸ“‚ Library πŸ“… 2020 πŸ› Manning Publications 🌐 English

<p>The Spark distributed data processing platform provides an easy-to-implement tool for ingesting, streaming, and processing data from any source. In <i>Spark in Action, Second Edition</i>, you’ll learn to take advantage of Spark’s core features and incredible processing speed, with applications in