<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css" media="print">.hide{display:none}</style></head> <body style="margin:0;padding:0"><div class="hide"> <div bgcolor="#ffffff" vlink="blue" link="blue"> <table border="0" width="100%"><tr><td bgcolor="eeeeee" align="right"><font face="arial,sans-serif"><a name="0.1_1"><b>Page 1</b></a></font></td></tr></table><font size="3" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:1148;left:738">v</div> </span></font> <font size="6" face="Times"><span style="font-size:48px;font-family:Times"> <div style="position:absolute;top:355;left:162"><b>Contents</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:512;left:270">Foreword</div> <div style="position:absolute;top:512;left:730">xiii</div> <div style="position:absolute;top:530;left:270">Preface</div> <div style="position:absolute;top:530;left:734">xv</div> <div style="position:absolute;top:548;left:270">Acknowledgments</div> <div style="position:absolute;top:548;left:730">xxi</div> <div style="position:absolute;top:566;left:270">About the Authors</div> <div style="position:absolute;top:566;left:723">xxiii</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:611;left:162">Chapter 1</div> <div style="position:absolute;top:611;left:270">Getting Started</div> <div style="position:absolute;top:611;left:736">1</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:640;left:270">Beyond JUnit 3</div> <div style="position:absolute;top:640;left:738">3</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:660;left:288">Stateful Classes</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:659;left:738">3</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:676;left:288">Parameters</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:675;left:738">4</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:693;left:288">Base Classes</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:692;left:738">4</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:709;left:288">Exceptions Are Not That Exceptional</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:708;left:738">4</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:726;left:288">Running Tests</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:725;left:738">5</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:743;left:288">Real-World Testing</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:741;left:738">6</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:759;left:288">Configuration Methods</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:758;left:738">6</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:775;left:288">Dependencies</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:774;left:738">6</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:792;left:288">Epiphanies</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:791;left:738">7</div> <div style="position:absolute;top:808;left:270">JUnit 4</div> <div style="position:absolute;top:808;left:738">7</div> <div style="position:absolute;top:828;left:270">Designing for Testability</div> <div style="position:absolute;top:828;left:738">8</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:847;left:288">Object-Oriented Programming and Encapsulation</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:846;left:738">8</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:864;left:288">The Design Patterns Revolution</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:863;left:738">9</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:880;left:288">Identifying the Enemy</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:879;left:729">10</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:897;left:288">Recommendations</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:896;left:729">16</div> <div style="position:absolute;top:913;left:270">TestNG</div> <div style="position:absolute;top:913;left:729">17</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:933;left:288">Annotations</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:932;left:729">17</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:950;left:288">Tests, Suites, and Configuration Annotations</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:948;left:729">18</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:966;left:288">Groups</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:965;left:729">20</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:983;left:288"><b>testng.xml</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:981;left:729">21</div> <div style="position:absolute;top:999;left:270">Conclusion</div> <div style="position:absolute;top:999;left:729">21</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:1045;left:162">Chapter 2</div> <div style="position:absolute;top:1045;left:270">Testing Design Patterns</div> <div style="position:absolute;top:1045;left:725">23</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1075;left:270">Testing for Failures</div> <div style="position:absolute;top:1075;left:729">23</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1094;left:288">Reporting Errors</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1093;left:729">24</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1111;left:288">Runtime and Checked Exceptions</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1110;left:729">25</div> </span></font> <font size="2" face="Times"><span style="font-size:8px;font-family:Times"> <div style="position:absolute;top:202;left:90">Beust.book Page v Thursday, August 16, 2007 10:22 AM</div> </span></font> <div style="position:absolute;top:1282;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="eeeeee" align="right"><font face="arial,sans-serif"><a name="0.1_2"><b>Page 2</b></a></font></td></tr></table></div><font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:1387;left:117">vi</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1390;left:189">Contents</div> <div style="position:absolute;top:1444;left:243">Testing Whether Your Code Handles Failures Gracefully</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1443;left:684">27</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1460;left:243">When Not to Use <b>expectedExceptions</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1459;left:684">31</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1477;left:243"><b>testng-failed.xml</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1476;left:684">32</div> <div style="position:absolute;top:1493;left:225">Factories</div> <div style="position:absolute;top:1493;left:684">34</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1513;left:243"><b>@Factory</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1512;left:684">35</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1530;left:243"><b>org.testng.ITest</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1528;left:684">38</div> <div style="position:absolute;top:1546;left:225">Data-Driven Testing</div> <div style="position:absolute;top:1546;left:684">39</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1565;left:243">Parameters and Test Methods</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1564;left:684">42</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1582;left:243">Passing Parameters with <b>testng.xml</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1581;left:684">44</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1598;left:243">Passing Parameters with <b>@DataProvider</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1597;left:684">47</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1615;left:243">Parameters for Data Providers</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1614;left:684">50</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1631;left:243">The <b>Method </b>Parameter</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1630;left:684">50</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1648;left:243">The <b>ITestContext </b>Parameter</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1647;left:684">52</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1664;left:243">Lazy Data Providers</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1663;left:684">54</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1681;left:243">Pros and Cons of Both Approaches</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1680;left:684">59</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1697;left:243">Supplying the Data</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1696;left:684">60</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1714;left:243">Data Provider or Factory?</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1713;left:684">62</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1730;left:243">Tying It All Together</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1729;left:684">63</div> <div style="position:absolute;top:1747;left:225">Asynchronous Testing</div> <div style="position:absolute;top:1747;left:684">67</div> <div style="position:absolute;top:1766;left:225">Testing Multithreaded Code</div> <div style="position:absolute;top:1766;left:684">71</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1786;left:243">Concurrent Testing</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1785;left:684">72</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1803;left:243"><b>threadPoolSize</b>, <b>invocationCount</b>, and <b>timeOut</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1801;left:684">75</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1819;left:243">Concurrent Running</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1818;left:684">79</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1835;left:243">Turning on the Parallel Bit</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1834;left:684">82</div> <div style="position:absolute;top:1852;left:225">Performance Testing</div> <div style="position:absolute;top:1852;left:684">83</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1871;left:243">Algorithm Complexity</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1870;left:684">84</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1888;left:243">Testing Complexity</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1887;left:684">87</div> <div style="position:absolute;top:1904;left:225">Mocks and Stubs</div> <div style="position:absolute;top:1904;left:684">90</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1924;left:243">Mocks versus Stubs</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1923;left:684">90</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1940;left:243">Designing for Mockability</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1939;left:684">95</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1957;left:243">Mock Libraries</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1956;left:684">96</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1973;left:243">Selecting the Right Strategy</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1972;left:684">99</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:1990;left:243">Mock Pitfalls</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:1989;left:675">100</div> <div style="position:absolute;top:2006;left:225">Dependent Testing</div> <div style="position:absolute;top:2006;left:675">103</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2026;left:243">Dependent Code</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2025;left:675">104</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2042;left:243">Dependent Testing with TestNG</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2041;left:675">105</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2059;left:243">Deciding Whether to Depend on Groups or on Methods</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2058;left:675">106</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2075;left:243">Dependent Testing and Threads</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2074;left:675">110</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2092;left:243">Failures of Configuration Methods</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2091;left:675">110</div> <div style="position:absolute;top:2108;left:225">Inheritance and Annotation Scopes</div> <div style="position:absolute;top:2108;left:675">113</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2128;left:243">The Problem</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2127;left:675">113</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2144;left:243">Pitfalls of Inheritance</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2143;left:675">116</div> <div style="position:absolute;top:2161;left:225">Test Groups</div> <div style="position:absolute;top:2161;left:675">119</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2180;left:243">Syntax</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2179;left:675">120</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2197;left:243">Groups and Runtime</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2196;left:675">122</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2213;left:243">Running Groups</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2212;left:675">125</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2230;left:243">Using Groups Effectively</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2229;left:675">127</div> </span></font> <font size="2" face="Times"><span style="font-size:8px;font-family:Times"> <div style="position:absolute;top:1309;left:90">Beust.book Page vi Thursday, August 16, 2007 10:22 AM</div> </span></font> <div style="position:absolute;top:2389;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="eeeeee" align="right"><font face="arial,sans-serif"><a name="0.1_3"><b>Page 3</b></a></font></td></tr></table></div><font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2497;left:620">Contents</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:2494;left:729">vii</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2551;left:270">Code Coverage</div> <div style="position:absolute;top:2551;left:720">132</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2570;left:288">A Coverage Example</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2569;left:720">133</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2587;left:288">Coverage Metrics</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2586;left:720">134</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2603;left:288">Coverage Tools</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2602;left:720">136</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2620;left:288">Implementation</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2619;left:720">146</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2636;left:288">Beware!</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2635;left:720">147</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2653;left:288">A Guide to Successful Coverage</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2652;left:720">147</div> <div style="position:absolute;top:2669;left:270">Conclusion</div> <div style="position:absolute;top:2669;left:720">150</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:2716;left:162">Chapter 3</div> <div style="position:absolute;top:2716;left:270">Enterprise Testing</div> <div style="position:absolute;top:2716;left:715">153</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2745;left:270">A Typical Enterprise Scenario</div> <div style="position:absolute;top:2745;left:720">154</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2764;left:288">Participants</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2763;left:720">155</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2781;left:288">Testing Methodology</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2780;left:720">155</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2797;left:288">Issues with the Current Approach</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2796;left:720">156</div> <div style="position:absolute;top:2814;left:270">A Concrete Example</div> <div style="position:absolute;top:2814;left:720">157</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2833;left:288">Goals</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2832;left:720">159</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2850;left:288">Nongoals</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2849;left:720">160</div> <div style="position:absolute;top:2866;left:270">Test Implementation</div> <div style="position:absolute;top:2866;left:720">160</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2886;left:288">Testing for Success</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2885;left:720">161</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2903;left:288">Building Test Data</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2901;left:720">163</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2919;left:288">Test Setup Issues</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2918;left:720">166</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2935;left:288">Error Handling</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2934;left:720">172</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2952;left:288">Emerging Unit Tests</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2951;left:720">175</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2968;left:288">Coping with In-Container Components</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2967;left:720">177</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:2985;left:288">Putting It All Together</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:2984;left:720">178</div> <div style="position:absolute;top:3001;left:270">Exploring the Competing Consumers Pattern</div> <div style="position:absolute;top:3001;left:720">182</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3021;left:288">The Pattern</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3020;left:720">182</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3038;left:288">The Test</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3036;left:720">184</div> <div style="position:absolute;top:3054;left:270">The Role of Refactoring</div> <div style="position:absolute;top:3054;left:720">186</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3074;left:288">A Concrete Example</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3072;left:720">187</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3090;left:288">An In-Container Approach</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3089;left:720">193</div> <div style="position:absolute;top:3106;left:270">Conclusion</div> <div style="position:absolute;top:3106;left:720">194</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:3153;left:162">Chapter 4</div> <div style="position:absolute;top:3153;left:270">Java EE Testing</div> <div style="position:absolute;top:3153;left:715">197</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3182;left:270">In-Container versus Out-of-Container Testing</div> <div style="position:absolute;top:3182;left:720">198</div> <div style="position:absolute;top:3202;left:270">In-Container Testing</div> <div style="position:absolute;top:3202;left:720">200</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3221;left:288">Creating a Test Environment</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3220;left:720">200</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3238;left:288">Identifying Tests</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3237;left:720">201</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3254;left:288">Registering Tests</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3253;left:720">203</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3271;left:288">Registering a Results Listener</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3270;left:720">204</div> <div style="position:absolute;top:3287;left:270">Java Naming and Directory Interface (JNDI)</div> <div style="position:absolute;top:3287;left:720">207</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3307;left:288">Understanding JNDI\u2019s Bootstrapping</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3306;left:720">207</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3323;left:288">Spring\u2019s <b>SimpleNamingContextBuilder</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3322;left:720">209</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3340;left:288">Avoiding JNDI</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3339;left:720">210</div> </span></font> <font size="2" face="Times"><span style="font-size:8px;font-family:Times"> <div style="position:absolute;top:2416;left:90">Beust.book Page vii Thursday, August 16, 2007 10:22 AM</div> </span></font> <div style="position:absolute;top:3496;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="eeeeee" align="right"><font face="arial,sans-serif"><a name="0.1_4"><b>Page 4</b></a></font></td></tr></table></div><font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:3601;left:117">viii</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3604;left:189">Contents</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3658;left:225">Java Database Connectivity (JDBC)</div> <div style="position:absolute;top:3658;left:675">210</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3677;left:243">c3p0</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3676;left:675">212</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3694;left:243">Commons DBCP</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3693;left:675">213</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3710;left:243">Spring</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3709;left:675">213</div> <div style="position:absolute;top:3727;left:225">Java Transaction API (JTA)</div> <div style="position:absolute;top:3727;left:675">215</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3746;left:243">Java Open Transaction Manager (JOTM)</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3745;left:675">217</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3763;left:243">Atomikos TransactionEssentials </div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3762;left:675">218</div> <div style="position:absolute;top:3779;left:225">Java Messaging Service (JMS)</div> <div style="position:absolute;top:3779;left:675">219</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3799;left:243">Creating a Sender/Receiver Test</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3798;left:675">219</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3815;left:243">Using ActiveMQ for Tests</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3814;left:675">221</div> <div style="position:absolute;top:3832;left:225">Java Persistence API (JPA)</div> <div style="position:absolute;top:3832;left:675">225</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3851;left:243">Configuring the Database</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3850;left:675">227</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3868;left:243">Configuring the JPA Provider</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3867;left:675">227</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3884;left:243">Writing the Test</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3883;left:675">229</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3901;left:243">Simulating a Container</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3900;left:675">230</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3917;left:243">Using Spring as the Container</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3916;left:675">231</div> <div style="position:absolute;top:3934;left:225">Enterprise Java Beans 3.0 (EJB3)</div> <div style="position:absolute;top:3934;left:675">236</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3953;left:243">Message-Driven Beans</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3952;left:675">237</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3970;left:243">Session Beans</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3969;left:675">240</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:3986;left:243">Another Spring Container</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:3985;left:675">243</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4003;left:243">Disadvantages of a Full Container</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4002;left:675">244</div> <div style="position:absolute;top:4019;left:225">Java API for XML Web Services (JAX-WS)</div> <div style="position:absolute;top:4019;left:675">246</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4039;left:243">Recording Requests</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4038;left:675">248</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4055;left:243">Setting Up the Test Environment</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4054;left:675">248</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4072;left:243">Creating the Service Test</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4071;left:675">251</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4088;left:243">XPath Testing</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4087;left:675">253</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4105;left:243">Testing Remote Services</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4104;left:675">254</div> <div style="position:absolute;top:4121;left:225">Servlets</div> <div style="position:absolute;top:4121;left:675">255</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4141;left:243">In-Container Testing</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4140;left:675">255</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4157;left:243">Mock/Stub Objects</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4156;left:675">255</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4174;left:243">Refactoring</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4173;left:675">257</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4190;left:243">Embedded Container</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4189;left:675">257</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4207;left:243">In-Memory Invocation</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4206;left:675">260</div> <div style="position:absolute;top:4223;left:225">XML</div> <div style="position:absolute;top:4223;left:675">262</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4243;left:243">Using dom4j</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4242;left:675">263</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4259;left:243">Using XMLUnit</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4258;left:675">264</div> <div style="position:absolute;top:4276;left:225">Conclusion</div> <div style="position:absolute;top:4276;left:675">266</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:4322;left:117">Chapter 5</div> <div style="position:absolute;top:4322;left:225">Integration</div> <div style="position:absolute;top:4322;left:670">269</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4351;left:225">Spring</div> <div style="position:absolute;top:4351;left:675">270</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4371;left:243">Spring\u2019s Test Package Features</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4370;left:675">271</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4388;left:243">Test Class Hierarchy</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4386;left:675">272</div> <div style="position:absolute;top:4404;left:225">Guice</div> <div style="position:absolute;top:4404;left:675">280</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4424;left:243">The Issue with Spring</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4422;left:675">280</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4440;left:243">Enter Guice</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4439;left:675">281</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4456;left:243">A Typical Dependency Scenario</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4455;left:675">282</div> </span></font> <font size="2" face="Times"><span style="font-size:8px;font-family:Times"> <div style="position:absolute;top:3523;left:90">Beust.book Page viii Thursday, August 16, 2007 10:22 AM</div> </span></font> <div style="position:absolute;top:4603;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="eeeeee" align="right"><font face="arial,sans-serif"><a name="0.1_5"><b>Page 5</b></a></font></td></tr></table></div><font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4711;left:620">Contents</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:4708;left:733">ix</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4765;left:288">The Object Factory</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4764;left:720">284</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4781;left:288">Guice Configuration</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4780;left:720">286</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4798;left:288">Guice-Based Test</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4797;left:720">290</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4814;left:288">Grouping Test Dependencies</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4813;left:720">291</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4831;left:288">Injecting Configuration</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4830;left:720">293</div> <div style="position:absolute;top:4847;left:270">DbUnit</div> <div style="position:absolute;top:4847;left:720">295</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4867;left:288">Configuration</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4866;left:720">295</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4883;left:288">Usage</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4882;left:720">297</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4900;left:288">Verifying Results</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4899;left:720">299</div> <div style="position:absolute;top:4916;left:270">HtmlUnit</div> <div style="position:absolute;top:4916;left:720">303</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4936;left:288">Configuration</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4935;left:720">304</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:4952;left:288">Usage</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:4951;left:720">305</div> <div style="position:absolute;top:4969;left:270">Selenium</div> <div style="position:absolute;top:4969;left:720">310</div> <div style="position:absolute;top:4988;left:270">Swing UI Testing</div> <div style="position:absolute;top:4988;left:720">312</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5008;left:288">Testing Approach</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5007;left:720">312</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5024;left:288">Configuration</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5023;left:720">313</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5041;left:288">Usage</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5040;left:720">314</div> <div style="position:absolute;top:5057;left:270">Tests for Painting Code</div> <div style="position:absolute;top:5057;left:720">316</div> <div style="position:absolute;top:5077;left:270">Continuous Integration</div> <div style="position:absolute;top:5077;left:720">320</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5096;left:288">Why Bother?</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5095;left:720">320</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5113;left:288">CI Server Features</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5112;left:720">320</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5129;left:288">TestNG Integration</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5128;left:720">321</div> <div style="position:absolute;top:5146;left:270">Conclusion</div> <div style="position:absolute;top:5146;left:720">322</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:5192;left:162">Chapter 6</div> <div style="position:absolute;top:5192;left:270">Extending TestNG</div> <div style="position:absolute;top:5192;left:715">325</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5221;left:270">The TestNG API</div> <div style="position:absolute;top:5221;left:720">325</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5242;left:288"><b>org.testng.TestNG</b>, <b>ITestResult</b>, <b>ITestListener</b>, </div> <div style="position:absolute;top:5258;left:306"><b>ITestNGMethod</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5256;left:720">325</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5274;left:288">A Concrete Example</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5273;left:720">328</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5290;left:288">The XML API</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5289;left:720">331</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5307;left:288">Synthetic XML Files</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5306;left:720">333</div> <div style="position:absolute;top:5323;left:270">BeanShell</div> <div style="position:absolute;top:5323;left:720">335</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5343;left:288">BeanShell Overview</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5342;left:720">335</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5360;left:288">TestNG and BeanShell</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5358;left:720">337</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5376;left:288">Interactive Execution</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5375;left:720">339</div> <div style="position:absolute;top:5392;left:270">Method Selectors</div> <div style="position:absolute;top:5392;left:720">341</div> <div style="position:absolute;top:5412;left:270">Annotation Transformers</div> <div style="position:absolute;top:5412;left:720">346</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5432;left:288">Annotation History</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5430;left:720">346</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5448;left:288">Pros and Cons</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5447;left:720">348</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5464;left:288">Using TestNG Annotation Transformers</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5463;left:720">348</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5481;left:288">Possible Uses of Annotation Transformers</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5480;left:720">353</div> <div style="position:absolute;top:5497;left:270">Reports</div> <div style="position:absolute;top:5497;left:720">355</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5517;left:288">Default Reports</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5516;left:720">355</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5534;left:288">The Reporter API</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5533;left:720">360</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5550;left:288">The Report Plug-in API</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5549;left:720">360</div> </span></font> <font size="2" face="Times"><span style="font-size:8px;font-family:Times"> <div style="position:absolute;top:4630;left:90">Beust.book Page ix Thursday, August 16, 2007 10:22 AM</div> </span></font> <div style="position:absolute;top:5710;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="eeeeee" align="right"><font face="arial,sans-serif"><a name="0.1_6"><b>Page 6</b></a></font></td></tr></table></div><font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:5815;left:117">x</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5818;left:189">Contents</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5872;left:225">Writing Custom Annotations</div> <div style="position:absolute;top:5872;left:675">366</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5891;left:243">Implementation</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5890;left:675">367</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:5908;left:243">Testing</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:5907;left:675">371</div> <div style="position:absolute;top:5924;left:225">Conclusion</div> <div style="position:absolute;top:5924;left:675">375</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:5971;left:117">Chapter 7</div> <div style="position:absolute;top:5971;left:225">Digressions</div> <div style="position:absolute;top:5971;left:670">377</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6000;left:225">Motivation</div> <div style="position:absolute;top:6000;left:675">377</div> <div style="position:absolute;top:6019;left:225">The TestNG Philosophy</div> <div style="position:absolute;top:6019;left:675">378</div> <div style="position:absolute;top:6039;left:225">The Care and Feeding of Exceptions</div> <div style="position:absolute;top:6039;left:675">378</div> <div style="position:absolute;top:6058;left:225">Stateful Tests</div> <div style="position:absolute;top:6058;left:675">382</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6078;left:243">Immutable State</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6077;left:675">382</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6094;left:243">Mutable State</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6093;left:675">383</div> <div style="position:absolute;top:6111;left:225">The Pitfalls of Test-Driven Development</div> <div style="position:absolute;top:6111;left:675">385</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6130;left:243">TDD Promotes Microdesign over Macrodesign</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6129;left:675">385</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6147;left:243">TDD Is Hard to Apply</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6146;left:675">386</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6163;left:243">Extracting the Good from Test-Driven Development</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6162;left:675">388</div> <div style="position:absolute;top:6180;left:225">Testing Private Methods</div> <div style="position:absolute;top:6180;left:675">388</div> <div style="position:absolute;top:6199;left:225">Testing versus Encapsulation</div> <div style="position:absolute;top:6199;left:675">391</div> <div style="position:absolute;top:6219;left:225">The Power of Debuggers</div> <div style="position:absolute;top:6219;left:675">392</div> <div style="position:absolute;top:6238;left:225">Logging Best Practices</div> <div style="position:absolute;top:6238;left:675">394</div> <div style="position:absolute;top:6258;left:225">The Value of Time</div> <div style="position:absolute;top:6258;left:675">397</div> <div style="position:absolute;top:6277;left:225">Conclusion</div> <div style="position:absolute;top:6277;left:675">399</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:6324;left:117">Appendix A IDE Integration</div> <div style="position:absolute;top:6324;left:670">401</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6353;left:225">Eclipse</div> <div style="position:absolute;top:6353;left:675">401</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6373;left:243">Installing the Plug-in</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6372;left:675">401</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6389;left:243">Verifying the Installation</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6388;left:675">404</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6406;left:243">Creating a Launch Configuration</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6405;left:675">404</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6422;left:243">Configuring Preferences</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6421;left:675">410</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6439;left:243">Converting JUnit Tests</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6438;left:675">410</div> <div style="position:absolute;top:6455;left:225">IntelliJ IDEA</div> <div style="position:absolute;top:6455;left:675">411</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6475;left:243">Installing the Plug-in</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6474;left:675">411</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6491;left:243">Running Tests</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6490;left:675">412</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6508;left:243">Running Shortcuts</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6507;left:675">417</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6524;left:243">Viewing Test Results</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6523;left:675">418</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6541;left:243">Running Plug-in Refactorings</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6540;left:675">419</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:6584;left:117">Appendix B TestNG Javadocs</div> <div style="position:absolute;top:6584;left:670">421</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6613;left:225">JDK 1.4 and JDK 5</div> <div style="position:absolute;top:6613;left:675">421</div> <div style="position:absolute;top:6633;left:225">Shortcut Syntax for JDK 5 Annotations</div> <div style="position:absolute;top:6633;left:675">423</div> </span></font> <font size="2" face="Times"><span style="font-size:8px;font-family:Times"> <div style="position:absolute;top:5737;left:90">Beust.book Page x Thursday, August 16, 2007 10:22 AM</div> </span></font> <div style="position:absolute;top:6817;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="eeeeee" align="right"><font face="arial,sans-serif"><a name="0.1_7"><b>Page 7</b></a></font></td></tr></table></div><font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6925;left:620">Contents</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:6922;left:733">xi</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6979;left:270">Annotation Javadocs</div> <div style="position:absolute;top:6979;left:720">423</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:6999;left:288"><b>@<a href="mailto:DataProvider/@testng.data-provider" target="_blank">DataProvider/@testng.data<WBR>-provider</a></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:6997;left:720">425</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7015;left:288"><b>@<a href="mailto:Factory/@testng.factory" target="_blank">Factory/@testng.factory</a></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7014;left:720">426</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7032;left:288"><b>@<a href="mailto:Parameters/@testng.parameters" target="_blank">Parameters/@testng.parameters</a></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7030;left:720">426</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7048;left:288"><b>@<a href="mailto:Test/@testng.test" target="_blank">Test/@testng.test</a></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7047;left:720">427</div> <div style="position:absolute;top:7064;left:270">The </div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7066;left:298"><b>org.testng.TestNG</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7064;left:441">Class</div> <div style="position:absolute;top:7064;left:720">428</div> <div style="position:absolute;top:7084;left:270">The XML API</div> <div style="position:absolute;top:7084;left:720">432</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:7130;left:162">Appendix C <b>testng.xml</b></div> <div style="position:absolute;top:7131;left:715"><b>435</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7159;left:270">Overview</div> <div style="position:absolute;top:7159;left:720">436</div> <div style="position:absolute;top:7179;left:270">Scopes</div> <div style="position:absolute;top:7179;left:720">437</div> <div style="position:absolute;top:7198;left:270">XML Tags</div> <div style="position:absolute;top:7198;left:720">437</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7219;left:288"><b><suite></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7217;left:720">437</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7235;left:288"><b><packages> </b>and <b><package></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7233;left:720">440</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7252;left:288"><b><parameter></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7250;left:720">441</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7268;left:288"><b><suite-files> </b>and <b><suite-file></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7266;left:720">442</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7285;left:288"><b><method-selectors></b>, <b><method-selector></b>, </div> <div style="position:absolute;top:7301;left:306"><b><selector-class></b>, and <b><script></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7299;left:720">443</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7318;left:288"><b><test></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7316;left:720">444</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7334;left:288"><b><groups></b>, <b><define></b>, and <b><run></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7332;left:720">446</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7351;left:288"><b><classes> </b>and <b><class></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7349;left:720">446</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7367;left:288"><b><methods></b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7365;left:720">447</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:7410;left:162">Appendix D Migrating from JUnit</div> <div style="position:absolute;top:7410;left:715">449</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7441;left:270"><b>JUnitConverter</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7439;left:720">449</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7459;left:288">From the Command Line</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7458;left:720">449</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7475;left:288">From <b>ant</b></div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7474;left:720">452</div> <div style="position:absolute;top:7492;left:270">Integrated Development Environments</div> <div style="position:absolute;top:7492;left:720">453</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7511;left:288">Eclipse</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7510;left:720">453</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7528;left:288">IDEA</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7527;left:720">454</div> <div style="position:absolute;top:7544;left:270">Incremental Migration and JUnit Mode</div> <div style="position:absolute;top:7544;left:720">455</div> <div style="position:absolute;top:7564;left:270">Converting JUnit Code</div> <div style="position:absolute;top:7564;left:720">456</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7583;left:288">Assertions</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7582;left:720">457</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7600;left:288">Running a Single Test</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7599;left:720">458</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7616;left:288">Maintaining State between Invocations</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7615;left:720">461</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7633;left:288">Suite-wide Initialization</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7632;left:720">463</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7649;left:288">Class-wide Initialization</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7648;left:720">463</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7666;left:288">The AllTests Pattern</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7665;left:720">463</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7682;left:288">Testing Exceptions</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7681;left:720">467</div> </span></font> <font size="8" face="Times"><span style="font-size:11px;font-family:Times"> <div style="position:absolute;top:7699;left:288">The Parameterized Test Case Pattern</div> </span></font> <font size="8" face="Times"><span style="font-size:12px;font-family:Times"> <div style="position:absolute;top:7698;left:720">469</div> </span></font> <font size="8" face="Times"><span style="font-size:16px;font-family:Times"> <div style="position:absolute;top:7742;left:270">Index</div> <div style="position:absolute;top:7742;left:715">471</div> </span></font> <font size="2" face="Times"><span style="font-size:8px;font-family:Times"> <div style="position:absolute;top:6844;left:90">Beust.book Page xi Thursday, August 16, 2007 10:22 AM</div> </span></font> <div style="position:absolute;top:7924;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="eeeeee" align="right"><font face="arial,sans-serif"><a name="0.1_8"><b>Page 8</b></a></font></td></tr></table></div><font size="2" face="Times"><span style="font-size:8px;font-family:Times"> <div style="position:absolute;top:7951;left:90">Beust.book Page xii Thursday, August 16, 2007 10:22 AM</div> </span></font> </div> </div></body></html>