Lines Matching full:top

12 <div style="position:absolute;top:1148;left:738">v</div>
16 <div style="position:absolute;top:355;left:162"><b>Contents</b></div>
19 <div style="position:absolute;top:512;left:270">Foreword</div>
20 <div style="position:absolute;top:512;left:730">xiii</div>
21 <div style="position:absolute;top:530;left:270">Preface</div>
22 <div style="position:absolute;top:530;left:734">xv</div>
23 <div style="position:absolute;top:548;left:270">Acknowledgments</div>
24 <div style="position:absolute;top:548;left:730">xxi</div>
25 <div style="position:absolute;top:566;left:270">About the Authors</div>
27 <div style="position:absolute;top:566;left:723">xxiii</div>
30 <div style="position:absolute;top:611;left:162">Chapter 1</div>
31 <div style="position:absolute;top:611;left:270">Getting Started</div>
32 <div style="position:absolute;top:611;left:736">1</div>
35 <div style="position:absolute;top:640;left:270">Beyond JUnit 3</div>
36 <div style="position:absolute;top:640;left:738">3</div>
40 <div style="position:absolute;top:660;left:288">Stateful Classes</div>
43 <div style="position:absolute;top:659;left:738">3</div>
46 <div style="position:absolute;top:676;left:288">Parameters</div>
49 <div style="position:absolute;top:675;left:738">4</div>
53 <div style="position:absolute;top:693;left:288">Base Classes</div>
56 <div style="position:absolute;top:692;left:738">4</div>
59 <div style="position:absolute;top:709;left:288">Exceptions Are Not That Exceptional</div>
62 <div style="position:absolute;top:708;left:738">4</div>
65 <div style="position:absolute;top:726;left:288">Running Tests</div>
69 <div style="position:absolute;top:725;left:738">5</div>
72 <div style="position:absolute;top:743;left:288">Real-World Testing</div>
75 <div style="position:absolute;top:741;left:738">6</div>
78 <div style="position:absolute;top:759;left:288">Configuration Methods</div>
82 <div style="position:absolute;top:758;left:738">6</div>
85 <div style="position:absolute;top:775;left:288">Dependencies</div>
88 <div style="position:absolute;top:774;left:738">6</div>
91 <div style="position:absolute;top:792;left:288">Epiphanies</div>
95 <div style="position:absolute;top:791;left:738">7</div>
96 <div style="position:absolute;top:808;left:270">JUnit 4</div>
97 <div style="position:absolute;top:808;left:738">7</div>
98 <div style="position:absolute;top:828;left:270">Designing for Testability</div>
99 <div style="position:absolute;top:828;left:738">8</div>
102 <div style="position:absolute;top:847;left:288">Object-Oriented Programming and Encapsulation</div>
105 <div style="position:absolute;top:846;left:738">8</div>
109 <div style="position:absolute;top:864;left:288">The Design Patterns Revolution</div>
112 <div style="position:absolute;top:863;left:738">9</div>
115 <div style="position:absolute;top:880;left:288">Identifying the Enemy</div>
118 <div style="position:absolute;top:879;left:729">10</div>
122 <div style="position:absolute;top:897;left:288">Recommendations</div>
125 <div style="position:absolute;top:896;left:729">16</div>
126 <div style="position:absolute;top:913;left:270">TestNG</div>
127 <div style="position:absolute;top:913;left:729">17</div>
130 <div style="position:absolute;top:933;left:288">Annotations</div>
134 <div style="position:absolute;top:932;left:729">17</div>
137 <div style="position:absolute;top:950;left:288">Tests, Suites, and Configuration Annotations</div>
140 <div style="position:absolute;top:948;left:729">18</div>
143 <div style="position:absolute;top:966;left:288">Groups</div>
146 <div style="position:absolute;top:965;left:729">20</div>
150 <div style="position:absolute;top:983;left:288"><b>testng.xml</b></div>
153 <div style="position:absolute;top:981;left:729">21</div>
154 <div style="position:absolute;top:999;left:270">Conclusion</div>
155 <div style="position:absolute;top:999;left:729">21</div>
158 <div style="position:absolute;top:1045;left:162">Chapter 2</div>
159 <div style="position:absolute;top:1045;left:270">Testing Design Patterns</div>
161 <div style="position:absolute;top:1045;left:725">23</div>
164 <div style="position:absolute;top:1075;left:270">Testing for Failures</div>
165 <div style="position:absolute;top:1075;left:729">23</div>
168 <div style="position:absolute;top:1094;left:288">Reporting Errors</div>
171 <div style="position:absolute;top:1093;left:729">24</div>
175 <div style="position:absolute;top:1111;left:288">Runtime and Checked Exceptions</div>
178 <div style="position:absolute;top:1110;left:729">25</div>
181 <div style="position:absolute;top:202;left:90">Beust.book Page v Thursday, August 16, 2007 10:22…
184 <div style="position:absolute;top:1282;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="…
185 <div style="position:absolute;top:1387;left:117">vi</div>
189 <div style="position:absolute;top:1390;left:189">Contents</div>
190 <div style="position:absolute;top:1444;left:243">Testing Whether Your Code Handles Failures Gracefu…
193 <div style="position:absolute;top:1443;left:684">27</div>
196 <div style="position:absolute;top:1460;left:243">When Not to Use <b>expectedExceptions</b></div>
200 <div style="position:absolute;top:1459;left:684">31</div>
203 <div style="position:absolute;top:1477;left:243"><b>testng-failed.xml</b></div>
206 <div style="position:absolute;top:1476;left:684">32</div>
207 <div style="position:absolute;top:1493;left:225">Factories</div>
208 <div style="position:absolute;top:1493;left:684">34</div>
211 <div style="position:absolute;top:1513;left:243"><b>@Factory</b></div>
215 <div style="position:absolute;top:1512;left:684">35</div>
218 <div style="position:absolute;top:1530;left:243"><b>org.testng.ITest</b></div>
221 <div style="position:absolute;top:1528;left:684">38</div>
222 <div style="position:absolute;top:1546;left:225">Data-Driven Testing</div>
223 <div style="position:absolute;top:1546;left:684">39</div>
227 <div style="position:absolute;top:1565;left:243">Parameters and Test Methods</div>
230 <div style="position:absolute;top:1564;left:684">42</div>
233 <div style="position:absolute;top:1582;left:243">Passing Parameters with <b>testng.xml</b></div>
236 <div style="position:absolute;top:1581;left:684">44</div>
240 <div style="position:absolute;top:1598;left:243">Passing Parameters with <b>@DataProvider</b></div>
243 <div style="position:absolute;top:1597;left:684">47</div>
246 <div style="position:absolute;top:1615;left:243">Parameters for Data Providers</div>
249 <div style="position:absolute;top:1614;left:684">50</div>
253 <div style="position:absolute;top:1631;left:243">The <b>Method </b>Parameter</div>
256 <div style="position:absolute;top:1630;left:684">50</div>
259 <div style="position:absolute;top:1648;left:243">The <b>ITestContext </b>Parameter</div>
263 <div style="position:absolute;top:1647;left:684">52</div>
266 <div style="position:absolute;top:1664;left:243">Lazy Data Providers</div>
269 <div style="position:absolute;top:1663;left:684">54</div>
272 <div style="position:absolute;top:1681;left:243">Pros and Cons of Both Approaches</div>
275 <div style="position:absolute;top:1680;left:684">59</div>
279 <div style="position:absolute;top:1697;left:243">Supplying the Data</div>
282 <div style="position:absolute;top:1696;left:684">60</div>
285 <div style="position:absolute;top:1714;left:243">Data Provider or Factory?</div>
288 <div style="position:absolute;top:1713;left:684">62</div>
292 <div style="position:absolute;top:1730;left:243">Tying It All Together</div>
295 <div style="position:absolute;top:1729;left:684">63</div>
296 <div style="position:absolute;top:1747;left:225">Asynchronous Testing</div>
297 <div style="position:absolute;top:1747;left:684">67</div>
298 <div style="position:absolute;top:1766;left:225">Testing Multithreaded Code</div>
299 <div style="position:absolute;top:1766;left:684">71</div>
303 <div style="position:absolute;top:1786;left:243">Concurrent Testing</div>
306 <div style="position:absolute;top:1785;left:684">72</div>
309 <div style="position:absolute;top:1803;left:243"><b>threadPoolSize</b>, <b>invocationCount</b>, and…
312 <div style="position:absolute;top:1801;left:684">75</div>
316 <div style="position:absolute;top:1819;left:243">Concurrent Running</div>
319 <div style="position:absolute;top:1818;left:684">79</div>
322 <div style="position:absolute;top:1835;left:243">Turning on the Parallel Bit</div>
325 <div style="position:absolute;top:1834;left:684">82</div>
326 <div style="position:absolute;top:1852;left:225">Performance Testing</div>
328 <div style="position:absolute;top:1852;left:684">83</div>
331 <div style="position:absolute;top:1871;left:243">Algorithm Complexity</div>
334 <div style="position:absolute;top:1870;left:684">84</div>
337 <div style="position:absolute;top:1888;left:243">Testing Complexity</div>
340 <div style="position:absolute;top:1887;left:684">87</div>
342 <div style="position:absolute;top:1904;left:225">Mocks and Stubs</div>
343 <div style="position:absolute;top:1904;left:684">90</div>
346 <div style="position:absolute;top:1924;left:243">Mocks versus Stubs</div>
349 <div style="position:absolute;top:1923;left:684">90</div>
352 <div style="position:absolute;top:1940;left:243">Designing for Mockability</div>
356 <div style="position:absolute;top:1939;left:684">95</div>
359 <div style="position:absolute;top:1957;left:243">Mock Libraries</div>
362 <div style="position:absolute;top:1956;left:684">96</div>
365 <div style="position:absolute;top:1973;left:243">Selecting the Right Strategy</div>
369 <div style="position:absolute;top:1972;left:684">99</div>
372 <div style="position:absolute;top:1990;left:243">Mock Pitfalls</div>
375 <div style="position:absolute;top:1989;left:675">100</div>
376 <div style="position:absolute;top:2006;left:225">Dependent Testing</div>
377 <div style="position:absolute;top:2006;left:675">103</div>
380 <div style="position:absolute;top:2026;left:243">Dependent Code</div>
384 <div style="position:absolute;top:2025;left:675">104</div>
387 <div style="position:absolute;top:2042;left:243">Dependent Testing with TestNG</div>
390 <div style="position:absolute;top:2041;left:675">105</div>
393 <div style="position:absolute;top:2059;left:243">Deciding Whether to Depend on Groups or on Methods…
397 <div style="position:absolute;top:2058;left:675">106</div>
400 <div style="position:absolute;top:2075;left:243">Dependent Testing and Threads</div>
403 <div style="position:absolute;top:2074;left:675">110</div>
406 <div style="position:absolute;top:2092;left:243">Failures of Configuration Methods</div>
410 <div style="position:absolute;top:2091;left:675">110</div>
411 <div style="position:absolute;top:2108;left:225">Inheritance and Annotation Scopes</div>
412 <div style="position:absolute;top:2108;left:675">113</div>
415 <div style="position:absolute;top:2128;left:243">The Problem</div>
418 <div style="position:absolute;top:2127;left:675">113</div>
421 <div style="position:absolute;top:2144;left:243">Pitfalls of Inheritance</div>
425 <div style="position:absolute;top:2143;left:675">116</div>
426 <div style="position:absolute;top:2161;left:225">Test Groups</div>
427 <div style="position:absolute;top:2161;left:675">119</div>
430 <div style="position:absolute;top:2180;left:243">Syntax</div>
433 <div style="position:absolute;top:2179;left:675">120</div>
437 <div style="position:absolute;top:2197;left:243">Groups and Runtime</div>
440 <div style="position:absolute;top:2196;left:675">122</div>
443 <div style="position:absolute;top:2213;left:243">Running Groups</div>
446 <div style="position:absolute;top:2212;left:675">125</div>
450 <div style="position:absolute;top:2230;left:243">Using Groups Effectively</div>
453 <div style="position:absolute;top:2229;left:675">127</div>
456 <div style="position:absolute;top:1309;left:90">Beust.book Page vi Thursday, August 16, 2007 10:…
459 <div style="position:absolute;top:2389;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="…
460 <div style="position:absolute;top:2497;left:620">Contents</div>
464 <div style="position:absolute;top:2494;left:729">vii</div>
467 <div style="position:absolute;top:2551;left:270">Code Coverage</div>
468 <div style="position:absolute;top:2551;left:720">132</div>
471 <div style="position:absolute;top:2570;left:288">A Coverage Example</div>
474 <div style="position:absolute;top:2569;left:720">133</div>
478 <div style="position:absolute;top:2587;left:288">Coverage Metrics</div>
481 <div style="position:absolute;top:2586;left:720">134</div>
484 <div style="position:absolute;top:2603;left:288">Coverage Tools</div>
487 <div style="position:absolute;top:2602;left:720">136</div>
491 <div style="position:absolute;top:2620;left:288">Implementation</div>
494 <div style="position:absolute;top:2619;left:720">146</div>
497 <div style="position:absolute;top:2636;left:288">Beware!</div>
500 <div style="position:absolute;top:2635;left:720">147</div>
504 <div style="position:absolute;top:2653;left:288">A Guide to Successful Coverage</div>
507 <div style="position:absolute;top:2652;left:720">147</div>
508 <div style="position:absolute;top:2669;left:270">Conclusion</div>
509 <div style="position:absolute;top:2669;left:720">150</div>
512 <div style="position:absolute;top:2716;left:162">Chapter 3</div>
513 <div style="position:absolute;top:2716;left:270">Enterprise Testing</div>
514 <div style="position:absolute;top:2716;left:715">153</div>
518 <div style="position:absolute;top:2745;left:270">A Typical Enterprise Scenario</div>
519 <div style="position:absolute;top:2745;left:720">154</div>
522 <div style="position:absolute;top:2764;left:288">Participants</div>
525 <div style="position:absolute;top:2763;left:720">155</div>
528 <div style="position:absolute;top:2781;left:288">Testing Methodology</div>
532 <div style="position:absolute;top:2780;left:720">155</div>
535 <div style="position:absolute;top:2797;left:288">Issues with the Current Approach</div>
538 <div style="position:absolute;top:2796;left:720">156</div>
539 <div style="position:absolute;top:2814;left:270">A Concrete Example</div>
540 <div style="position:absolute;top:2814;left:720">157</div>
544 <div style="position:absolute;top:2833;left:288">Goals</div>
547 <div style="position:absolute;top:2832;left:720">159</div>
550 <div style="position:absolute;top:2850;left:288">Nongoals</div>
553 <div style="position:absolute;top:2849;left:720">160</div>
554 <div style="position:absolute;top:2866;left:270">Test Implementation</div>
556 <div style="position:absolute;top:2866;left:720">160</div>
559 <div style="position:absolute;top:2886;left:288">Testing for Success</div>
562 <div style="position:absolute;top:2885;left:720">161</div>
565 <div style="position:absolute;top:2903;left:288">Building Test Data</div>
568 <div style="position:absolute;top:2901;left:720">163</div>
572 <div style="position:absolute;top:2919;left:288">Test Setup Issues</div>
575 <div style="position:absolute;top:2918;left:720">166</div>
578 <div style="position:absolute;top:2935;left:288">Error Handling</div>
581 <div style="position:absolute;top:2934;left:720">172</div>
585 <div style="position:absolute;top:2952;left:288">Emerging Unit Tests</div>
588 <div style="position:absolute;top:2951;left:720">175</div>
591 <div style="position:absolute;top:2968;left:288">Coping with In-Container Components</div>
594 <div style="position:absolute;top:2967;left:720">177</div>
598 <div style="position:absolute;top:2985;left:288">Putting It All Together</div>
601 <div style="position:absolute;top:2984;left:720">178</div>
602 <div style="position:absolute;top:3001;left:270">Exploring the Competing Consumers Pattern</div>
603 <div style="position:absolute;top:3001;left:720">182</div>
606 <div style="position:absolute;top:3021;left:288">The Pattern</div>
609 <div style="position:absolute;top:3020;left:720">182</div>
613 <div style="position:absolute;top:3038;left:288">The Test</div>
616 <div style="position:absolute;top:3036;left:720">184</div>
617 <div style="position:absolute;top:3054;left:270">The Role of Refactoring</div>
618 <div style="position:absolute;top:3054;left:720">186</div>
621 <div style="position:absolute;top:3074;left:288">A Concrete Example</div>
625 <div style="position:absolute;top:3072;left:720">187</div>
628 <div style="position:absolute;top:3090;left:288">An In-Container Approach</div>
631 <div style="position:absolute;top:3089;left:720">193</div>
632 <div style="position:absolute;top:3106;left:270">Conclusion</div>
633 <div style="position:absolute;top:3106;left:720">194</div>
637 <div style="position:absolute;top:3153;left:162">Chapter 4</div>
638 <div style="position:absolute;top:3153;left:270">Java EE Testing</div>
639 <div style="position:absolute;top:3153;left:715">197</div>
642 <div style="position:absolute;top:3182;left:270">In-Container versus Out-of-Container Testing</div>
643 <div style="position:absolute;top:3182;left:720">198</div>
644 <div style="position:absolute;top:3202;left:270">In-Container Testing</div>
645 <div style="position:absolute;top:3202;left:720">200</div>
649 <div style="position:absolute;top:3221;left:288">Creating a Test Environment</div>
652 <div style="position:absolute;top:3220;left:720">200</div>
655 <div style="position:absolute;top:3238;left:288">Identifying Tests</div>
658 <div style="position:absolute;top:3237;left:720">201</div>
662 <div style="position:absolute;top:3254;left:288">Registering Tests</div>
665 <div style="position:absolute;top:3253;left:720">203</div>
668 <div style="position:absolute;top:3271;left:288">Registering a Results Listener</div>
671 <div style="position:absolute;top:3270;left:720">204</div>
672 <div style="position:absolute;top:3287;left:270">Java Naming and Directory Interface (JNDI)</div>
673 <div style="position:absolute;top:3287;left:720">207</div>
677 <div style="position:absolute;top:3307;left:288">Understanding JNDI\u2019s Bootstrapping</div>
680 <div style="position:absolute;top:3306;left:720">207</div>
683 <div style="position:absolute;top:3323;left:288">Spring\u2019s <b>SimpleNamingContextBuilder</b></d…
686 <div style="position:absolute;top:3322;left:720">209</div>
690 <div style="position:absolute;top:3340;left:288">Avoiding JNDI</div>
693 <div style="position:absolute;top:3339;left:720">210</div>
696 <div style="position:absolute;top:2416;left:90">Beust.book Page vii Thursday, August 16, 2007 10…
699 <div style="position:absolute;top:3496;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="…
700 <div style="position:absolute;top:3601;left:117">viii</div>
704 <div style="position:absolute;top:3604;left:189">Contents</div>
707 <div style="position:absolute;top:3658;left:225">Java Database Connectivity (JDBC)</div>
708 <div style="position:absolute;top:3658;left:675">210</div>
711 <div style="position:absolute;top:3677;left:243">c3p0</div>
714 <div style="position:absolute;top:3676;left:675">212</div>
718 <div style="position:absolute;top:3694;left:243">Commons DBCP</div>
721 <div style="position:absolute;top:3693;left:675">213</div>
724 <div style="position:absolute;top:3710;left:243">Spring</div>
727 <div style="position:absolute;top:3709;left:675">213</div>
728 <div style="position:absolute;top:3727;left:225">Java Transaction API (JTA)</div>
730 <div style="position:absolute;top:3727;left:675">215</div>
733 <div style="position:absolute;top:3746;left:243">Java Open Transaction Manager (JOTM)</div>
736 <div style="position:absolute;top:3745;left:675">217</div>
739 <div style="position:absolute;top:3763;left:243">Atomikos TransactionEssentials </div>
742 <div style="position:absolute;top:3762;left:675">218</div>
744 <div style="position:absolute;top:3779;left:225">Java Messaging Service (JMS)</div>
745 <div style="position:absolute;top:3779;left:675">219</div>
748 <div style="position:absolute;top:3799;left:243">Creating a Sender/Receiver Test</div>
751 <div style="position:absolute;top:3798;left:675">219</div>
754 <div style="position:absolute;top:3815;left:243">Using ActiveMQ for Tests</div>
758 <div style="position:absolute;top:3814;left:675">221</div>
759 <div style="position:absolute;top:3832;left:225">Java Persistence API (JPA)</div>
760 <div style="position:absolute;top:3832;left:675">225</div>
763 <div style="position:absolute;top:3851;left:243">Configuring the Database</div>
766 <div style="position:absolute;top:3850;left:675">227</div>
770 <div style="position:absolute;top:3868;left:243">Configuring the JPA Provider</div>
773 <div style="position:absolute;top:3867;left:675">227</div>
776 <div style="position:absolute;top:3884;left:243">Writing the Test</div>
779 <div style="position:absolute;top:3883;left:675">229</div>
782 <div style="position:absolute;top:3901;left:243">Simulating a Container</div>
786 <div style="position:absolute;top:3900;left:675">230</div>
789 <div style="position:absolute;top:3917;left:243">Using Spring as the Container</div>
792 <div style="position:absolute;top:3916;left:675">231</div>
793 <div style="position:absolute;top:3934;left:225">Enterprise Java Beans 3.0 (EJB3)</div>
794 <div style="position:absolute;top:3934;left:675">236</div>
798 <div style="position:absolute;top:3953;left:243">Message-Driven Beans</div>
801 <div style="position:absolute;top:3952;left:675">237</div>
804 <div style="position:absolute;top:3970;left:243">Session Beans</div>
807 <div style="position:absolute;top:3969;left:675">240</div>
811 <div style="position:absolute;top:3986;left:243">Another Spring Container</div>
814 <div style="position:absolute;top:3985;left:675">243</div>
817 <div style="position:absolute;top:4003;left:243">Disadvantages of a Full Container</div>
820 <div style="position:absolute;top:4002;left:675">244</div>
821 <div style="position:absolute;top:4019;left:225">Java API for XML Web Services (JAX-WS)</div>
822 <div style="position:absolute;top:4019;left:675">246</div>
826 <div style="position:absolute;top:4039;left:243">Recording Requests</div>
829 <div style="position:absolute;top:4038;left:675">248</div>
832 <div style="position:absolute;top:4055;left:243">Setting Up the Test Environment</div>
835 <div style="position:absolute;top:4054;left:675">248</div>
839 <div style="position:absolute;top:4072;left:243">Creating the Service Test</div>
842 <div style="position:absolute;top:4071;left:675">251</div>
845 <div style="position:absolute;top:4088;left:243">XPath Testing</div>
848 <div style="position:absolute;top:4087;left:675">253</div>
852 <div style="position:absolute;top:4105;left:243">Testing Remote Services</div>
855 <div style="position:absolute;top:4104;left:675">254</div>
856 <div style="position:absolute;top:4121;left:225">Servlets</div>
857 <div style="position:absolute;top:4121;left:675">255</div>
860 <div style="position:absolute;top:4141;left:243">In-Container Testing</div>
863 <div style="position:absolute;top:4140;left:675">255</div>
867 <div style="position:absolute;top:4157;left:243">Mock/Stub Objects</div>
870 <div style="position:absolute;top:4156;left:675">255</div>
873 <div style="position:absolute;top:4174;left:243">Refactoring</div>
876 <div style="position:absolute;top:4173;left:675">257</div>
880 <div style="position:absolute;top:4190;left:243">Embedded Container</div>
883 <div style="position:absolute;top:4189;left:675">257</div>
886 <div style="position:absolute;top:4207;left:243">In-Memory Invocation</div>
889 <div style="position:absolute;top:4206;left:675">260</div>
890 <div style="position:absolute;top:4223;left:225">XML</div>
892 <div style="position:absolute;top:4223;left:675">262</div>
895 <div style="position:absolute;top:4243;left:243">Using dom4j</div>
898 <div style="position:absolute;top:4242;left:675">263</div>
901 <div style="position:absolute;top:4259;left:243">Using XMLUnit</div>
904 <div style="position:absolute;top:4258;left:675">264</div>
906 <div style="position:absolute;top:4276;left:225">Conclusion</div>
907 <div style="position:absolute;top:4276;left:675">266</div>
910 <div style="position:absolute;top:4322;left:117">Chapter 5</div>
911 <div style="position:absolute;top:4322;left:225">Integration</div>
912 <div style="position:absolute;top:4322;left:670">269</div>
915 <div style="position:absolute;top:4351;left:225">Spring</div>
916 <div style="position:absolute;top:4351;left:675">270</div>
920 <div style="position:absolute;top:4371;left:243">Spring\u2019s Test Package Features</div>
923 <div style="position:absolute;top:4370;left:675">271</div>
926 <div style="position:absolute;top:4388;left:243">Test Class Hierarchy</div>
929 <div style="position:absolute;top:4386;left:675">272</div>
930 <div style="position:absolute;top:4404;left:225">Guice</div>
932 <div style="position:absolute;top:4404;left:675">280</div>
935 <div style="position:absolute;top:4424;left:243">The Issue with Spring</div>
938 <div style="position:absolute;top:4422;left:675">280</div>
941 <div style="position:absolute;top:4440;left:243">Enter Guice</div>
944 <div style="position:absolute;top:4439;left:675">281</div>
948 <div style="position:absolute;top:4456;left:243">A Typical Dependency Scenario</div>
951 <div style="position:absolute;top:4455;left:675">282</div>
954 <div style="position:absolute;top:3523;left:90">Beust.book Page viii Thursday, August 16, 2007 1…
957 <div style="position:absolute;top:4603;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="…
958 <div style="position:absolute;top:4711;left:620">Contents</div>
962 <div style="position:absolute;top:4708;left:733">ix</div>
965 <div style="position:absolute;top:4765;left:288">The Object Factory</div>
968 <div style="position:absolute;top:4764;left:720">284</div>
971 <div style="position:absolute;top:4781;left:288">Guice Configuration</div>
975 <div style="position:absolute;top:4780;left:720">286</div>
978 <div style="position:absolute;top:4798;left:288">Guice-Based Test</div>
981 <div style="position:absolute;top:4797;left:720">290</div>
984 <div style="position:absolute;top:4814;left:288">Grouping Test Dependencies</div>
988 <div style="position:absolute;top:4813;left:720">291</div>
991 <div style="position:absolute;top:4831;left:288">Injecting Configuration</div>
994 <div style="position:absolute;top:4830;left:720">293</div>
995 <div style="position:absolute;top:4847;left:270">DbUnit</div>
996 <div style="position:absolute;top:4847;left:720">295</div>
999 <div style="position:absolute;top:4867;left:288">Configuration</div>
1003 <div style="position:absolute;top:4866;left:720">295</div>
1006 <div style="position:absolute;top:4883;left:288">Usage</div>
1009 <div style="position:absolute;top:4882;left:720">297</div>
1012 <div style="position:absolute;top:4900;left:288">Verifying Results</div>
1016 <div style="position:absolute;top:4899;left:720">299</div>
1017 <div style="position:absolute;top:4916;left:270">HtmlUnit</div>
1018 <div style="position:absolute;top:4916;left:720">303</div>
1021 <div style="position:absolute;top:4936;left:288">Configuration</div>
1024 <div style="position:absolute;top:4935;left:720">304</div>
1028 <div style="position:absolute;top:4952;left:288">Usage</div>
1031 <div style="position:absolute;top:4951;left:720">305</div>
1032 <div style="position:absolute;top:4969;left:270">Selenium</div>
1033 <div style="position:absolute;top:4969;left:720">310</div>
1034 <div style="position:absolute;top:4988;left:270">Swing UI Testing</div>
1035 <div style="position:absolute;top:4988;left:720">312</div>
1038 <div style="position:absolute;top:5008;left:288">Testing Approach</div>
1042 <div style="position:absolute;top:5007;left:720">312</div>
1045 <div style="position:absolute;top:5024;left:288">Configuration</div>
1048 <div style="position:absolute;top:5023;left:720">313</div>
1051 <div style="position:absolute;top:5041;left:288">Usage</div>
1055 <div style="position:absolute;top:5040;left:720">314</div>
1056 <div style="position:absolute;top:5057;left:270">Tests for Painting Code</div>
1057 <div style="position:absolute;top:5057;left:720">316</div>
1058 <div style="position:absolute;top:5077;left:270">Continuous Integration</div>
1059 <div style="position:absolute;top:5077;left:720">320</div>
1062 <div style="position:absolute;top:5096;left:288">Why Bother?</div>
1066 <div style="position:absolute;top:5095;left:720">320</div>
1069 <div style="position:absolute;top:5113;left:288">CI Server Features</div>
1072 <div style="position:absolute;top:5112;left:720">320</div>
1075 <div style="position:absolute;top:5129;left:288">TestNG Integration</div>
1078 <div style="position:absolute;top:5128;left:720">321</div>
1080 <div style="position:absolute;top:5146;left:270">Conclusion</div>
1081 <div style="position:absolute;top:5146;left:720">322</div>
1084 <div style="position:absolute;top:5192;left:162">Chapter 6</div>
1085 <div style="position:absolute;top:5192;left:270">Extending TestNG</div>
1086 <div style="position:absolute;top:5192;left:715">325</div>
1089 <div style="position:absolute;top:5221;left:270">The TestNG API</div>
1090 <div style="position:absolute;top:5221;left:720">325</div>
1094 <div style="position:absolute;top:5242;left:288"><b>org.testng.TestNG</b>, <b>ITestResult</b>, <b>I…
1095 <div style="position:absolute;top:5258;left:306"><b>ITestNGMethod</b></div>
1098 <div style="position:absolute;top:5256;left:720">325</div>
1102 <div style="position:absolute;top:5274;left:288">A Concrete Example</div>
1105 <div style="position:absolute;top:5273;left:720">328</div>
1108 <div style="position:absolute;top:5290;left:288">The XML API</div>
1111 <div style="position:absolute;top:5289;left:720">331</div>
1114 <div style="position:absolute;top:5307;left:288">Synthetic XML Files</div>
1118 <div style="position:absolute;top:5306;left:720">333</div>
1119 <div style="position:absolute;top:5323;left:270">BeanShell</div>
1120 <div style="position:absolute;top:5323;left:720">335</div>
1123 <div style="position:absolute;top:5343;left:288">BeanShell Overview</div>
1126 <div style="position:absolute;top:5342;left:720">335</div>
1130 <div style="position:absolute;top:5360;left:288">TestNG and BeanShell</div>
1133 <div style="position:absolute;top:5358;left:720">337</div>
1136 <div style="position:absolute;top:5376;left:288">Interactive Execution</div>
1139 <div style="position:absolute;top:5375;left:720">339</div>
1140 <div style="position:absolute;top:5392;left:270">Method Selectors</div>
1142 <div style="position:absolute;top:5392;left:720">341</div>
1143 <div style="position:absolute;top:5412;left:270">Annotation Transformers</div>
1144 <div style="position:absolute;top:5412;left:720">346</div>
1147 <div style="position:absolute;top:5432;left:288">Annotation History</div>
1150 <div style="position:absolute;top:5430;left:720">346</div>
1153 <div style="position:absolute;top:5448;left:288">Pros and Cons</div>
1157 <div style="position:absolute;top:5447;left:720">348</div>
1160 <div style="position:absolute;top:5464;left:288">Using TestNG Annotation Transformers</div>
1163 <div style="position:absolute;top:5463;left:720">348</div>
1166 <div style="position:absolute;top:5481;left:288">Possible Uses of Annotation Transformers</div>
1170 <div style="position:absolute;top:5480;left:720">353</div>
1171 <div style="position:absolute;top:5497;left:270">Reports</div>
1172 <div style="position:absolute;top:5497;left:720">355</div>
1175 <div style="position:absolute;top:5517;left:288">Default Reports</div>
1178 <div style="position:absolute;top:5516;left:720">355</div>
1182 <div style="position:absolute;top:5534;left:288">The Reporter API</div>
1185 <div style="position:absolute;top:5533;left:720">360</div>
1188 <div style="position:absolute;top:5550;left:288">The Report Plug-in API</div>
1191 <div style="position:absolute;top:5549;left:720">360</div>
1194 <div style="position:absolute;top:4630;left:90">Beust.book Page ix Thursday, August 16, 2007 10:…
1198 <div style="position:absolute;top:5710;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="…
1199 <div style="position:absolute;top:5815;left:117">x</div>
1202 <div style="position:absolute;top:5818;left:189">Contents</div>
1205 <div style="position:absolute;top:5872;left:225">Writing Custom Annotations</div>
1206 <div style="position:absolute;top:5872;left:675">366</div>
1210 <div style="position:absolute;top:5891;left:243">Implementation</div>
1213 <div style="position:absolute;top:5890;left:675">367</div>
1216 <div style="position:absolute;top:5908;left:243">Testing</div>
1219 <div style="position:absolute;top:5907;left:675">371</div>
1220 <div style="position:absolute;top:5924;left:225">Conclusion</div>
1222 <div style="position:absolute;top:5924;left:675">375</div>
1225 <div style="position:absolute;top:5971;left:117">Chapter 7</div>
1226 <div style="position:absolute;top:5971;left:225">Digressions</div>
1227 <div style="position:absolute;top:5971;left:670">377</div>
1230 <div style="position:absolute;top:6000;left:225">Motivation</div>
1231 <div style="position:absolute;top:6000;left:675">377</div>
1232 <div style="position:absolute;top:6019;left:225">The TestNG Philosophy</div>
1234 <div style="position:absolute;top:6019;left:675">378</div>
1235 <div style="position:absolute;top:6039;left:225">The Care and Feeding of Exceptions</div>
1236 <div style="position:absolute;top:6039;left:675">378</div>
1237 <div style="position:absolute;top:6058;left:225">Stateful Tests</div>
1238 <div style="position:absolute;top:6058;left:675">382</div>
1241 <div style="position:absolute;top:6078;left:243">Immutable State</div>
1244 <div style="position:absolute;top:6077;left:675">382</div>
1248 <div style="position:absolute;top:6094;left:243">Mutable State</div>
1251 <div style="position:absolute;top:6093;left:675">383</div>
1252 <div style="position:absolute;top:6111;left:225">The Pitfalls of Test-Driven Development</div>
1253 <div style="position:absolute;top:6111;left:675">385</div>
1256 <div style="position:absolute;top:6130;left:243">TDD Promotes Microdesign over Macrodesign</div>
1260 <div style="position:absolute;top:6129;left:675">385</div>
1263 <div style="position:absolute;top:6147;left:243">TDD Is Hard to Apply</div>
1266 <div style="position:absolute;top:6146;left:675">386</div>
1269 <div style="position:absolute;top:6163;left:243">Extracting the Good from Test-Driven Development</…
1273 <div style="position:absolute;top:6162;left:675">388</div>
1274 <div style="position:absolute;top:6180;left:225">Testing Private Methods</div>
1275 <div style="position:absolute;top:6180;left:675">388</div>
1276 <div style="position:absolute;top:6199;left:225">Testing versus Encapsulation</div>
1277 <div style="position:absolute;top:6199;left:675">391</div>
1278 <div style="position:absolute;top:6219;left:225">The Power of Debuggers</div>
1279 <div style="position:absolute;top:6219;left:675">392</div>
1280 <div style="position:absolute;top:6238;left:225">Logging Best Practices</div>
1281 <div style="position:absolute;top:6238;left:675">394</div>
1283 <div style="position:absolute;top:6258;left:225">The Value of Time</div>
1284 <div style="position:absolute;top:6258;left:675">397</div>
1285 <div style="position:absolute;top:6277;left:225">Conclusion</div>
1286 <div style="position:absolute;top:6277;left:675">399</div>
1289 <div style="position:absolute;top:6324;left:117">Appendix A IDE Integration</div>
1290 <div style="position:absolute;top:6324;left:670">401</div>
1293 <div style="position:absolute;top:6353;left:225">Eclipse</div>
1295 <div style="position:absolute;top:6353;left:675">401</div>
1298 <div style="position:absolute;top:6373;left:243">Installing the Plug-in</div>
1301 <div style="position:absolute;top:6372;left:675">401</div>
1304 <div style="position:absolute;top:6389;left:243">Verifying the Installation</div>
1307 <div style="position:absolute;top:6388;left:675">404</div>
1311 <div style="position:absolute;top:6406;left:243">Creating a Launch Configuration</div>
1314 <div style="position:absolute;top:6405;left:675">404</div>
1317 <div style="position:absolute;top:6422;left:243">Configuring Preferences</div>
1320 <div style="position:absolute;top:6421;left:675">410</div>
1324 <div style="position:absolute;top:6439;left:243">Converting JUnit Tests</div>
1327 <div style="position:absolute;top:6438;left:675">410</div>
1328 <div style="position:absolute;top:6455;left:225">IntelliJ IDEA</div>
1329 <div style="position:absolute;top:6455;left:675">411</div>
1332 <div style="position:absolute;top:6475;left:243">Installing the Plug-in</div>
1336 <div style="position:absolute;top:6474;left:675">411</div>
1339 <div style="position:absolute;top:6491;left:243">Running Tests</div>
1342 <div style="position:absolute;top:6490;left:675">412</div>
1345 <div style="position:absolute;top:6508;left:243">Running Shortcuts</div>
1348 <div style="position:absolute;top:6507;left:675">417</div>
1352 <div style="position:absolute;top:6524;left:243">Viewing Test Results</div>
1355 <div style="position:absolute;top:6523;left:675">418</div>
1358 <div style="position:absolute;top:6541;left:243">Running Plug-in Refactorings</div>
1361 <div style="position:absolute;top:6540;left:675">419</div>
1365 <div style="position:absolute;top:6584;left:117">Appendix B TestNG Javadocs</div>
1366 <div style="position:absolute;top:6584;left:670">421</div>
1369 <div style="position:absolute;top:6613;left:225">JDK 1.4 and JDK 5</div>
1370 <div style="position:absolute;top:6613;left:675">421</div>
1371 <div style="position:absolute;top:6633;left:225">Shortcut Syntax for JDK 5 Annotations</div>
1372 <div style="position:absolute;top:6633;left:675">423</div>
1376 <div style="position:absolute;top:5737;left:90">Beust.book Page x Thursday, August 16, 2007 10:2…
1379 <div style="position:absolute;top:6817;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="…
1380 <div style="position:absolute;top:6925;left:620">Contents</div>
1383 <div style="position:absolute;top:6922;left:733">xi</div>
1386 <div style="position:absolute;top:6979;left:270">Annotation Javadocs</div>
1387 <div style="position:absolute;top:6979;left:720">423</div>
1391 <div style="position:absolute;top:6999;left:288"><b>@<a href="mailto:DataProvider/@testng.data-prov…
1394 <div style="position:absolute;top:6997;left:720">425</div>
1397 <div style="position:absolute;top:7015;left:288"><b>@<a href="mailto:Factory/@testng.factory" targe…
1401 <div style="position:absolute;top:7014;left:720">426</div>
1404 <div style="position:absolute;top:7032;left:288"><b>@<a href="mailto:Parameters/@testng.parameters"…
1407 <div style="position:absolute;top:7030;left:720">426</div>
1410 <div style="position:absolute;top:7048;left:288"><b>@<a href="mailto:Test/@testng.test" target="_bl…
1414 <div style="position:absolute;top:7047;left:720">427</div>
1415 <div style="position:absolute;top:7064;left:270">The </div>
1418 <div style="position:absolute;top:7066;left:298"><b>org.testng.TestNG</b></div>
1421 <div style="position:absolute;top:7064;left:441">Class</div>
1422 <div style="position:absolute;top:7064;left:720">428</div>
1423 <div style="position:absolute;top:7084;left:270">The XML API</div>
1425 <div style="position:absolute;top:7084;left:720">432</div>
1428 <div style="position:absolute;top:7130;left:162">Appendix C <b>testng.xml</b></div>
1429 <div style="position:absolute;top:7131;left:715"><b>435</b></div>
1432 <div style="position:absolute;top:7159;left:270">Overview</div>
1433 <div style="position:absolute;top:7159;left:720">436</div>
1434 <div style="position:absolute;top:7179;left:270">Scopes</div>
1436 <div style="position:absolute;top:7179;left:720">437</div>
1437 <div style="position:absolute;top:7198;left:270">XML Tags</div>
1438 <div style="position:absolute;top:7198;left:720">437</div>
1441 <div style="position:absolute;top:7219;left:288"><b>&lt;suite&gt;</b></div>
1444 <div style="position:absolute;top:7217;left:720">437</div>
1447 <div style="position:absolute;top:7235;left:288"><b>&lt;packages&gt; </b>and <b>&lt;package&gt;</b>…
1451 <div style="position:absolute;top:7233;left:720">440</div>
1454 <div style="position:absolute;top:7252;left:288"><b>&lt;parameter&gt;</b></div>
1457 <div style="position:absolute;top:7250;left:720">441</div>
1460 <div style="position:absolute;top:7268;left:288"><b>&lt;suite-files&gt; </b>and <b>&lt;suite-file&g…
1464 <div style="position:absolute;top:7266;left:720">442</div>
1467 <div style="position:absolute;top:7285;left:288"><b>&lt;method-selectors&gt;</b>, <b>&lt;method-sel…
1468 <div style="position:absolute;top:7301;left:306"><b>&lt;selector-class&gt;</b>, and <b>&lt;script&g…
1472 <div style="position:absolute;top:7299;left:720">443</div>
1475 <div style="position:absolute;top:7318;left:288"><b>&lt;test&gt;</b></div>
1478 <div style="position:absolute;top:7316;left:720">444</div>
1481 <div style="position:absolute;top:7334;left:288"><b>&lt;groups&gt;</b>, <b>&lt;define&gt;</b>, and …
1485 <div style="position:absolute;top:7332;left:720">446</div>
1488 <div style="position:absolute;top:7351;left:288"><b>&lt;classes&gt; </b>and <b>&lt;class&gt;</b></d…
1491 <div style="position:absolute;top:7349;left:720">446</div>
1495 <div style="position:absolute;top:7367;left:288"><b>&lt;methods&gt;</b></div>
1498 <div style="position:absolute;top:7365;left:720">447</div>
1501 <div style="position:absolute;top:7410;left:162">Appendix D Migrating from JUnit</div>
1502 <div style="position:absolute;top:7410;left:715">449</div>
1505 <div style="position:absolute;top:7441;left:270"><b>JUnitConverter</b></div>
1509 <div style="position:absolute;top:7439;left:720">449</div>
1512 <div style="position:absolute;top:7459;left:288">From the Command Line</div>
1515 <div style="position:absolute;top:7458;left:720">449</div>
1518 <div style="position:absolute;top:7475;left:288">From <b>ant</b></div>
1522 <div style="position:absolute;top:7474;left:720">452</div>
1523 <div style="position:absolute;top:7492;left:270">Integrated Development Environments</div>
1524 <div style="position:absolute;top:7492;left:720">453</div>
1527 <div style="position:absolute;top:7511;left:288">Eclipse</div>
1530 <div style="position:absolute;top:7510;left:720">453</div>
1534 <div style="position:absolute;top:7528;left:288">IDEA</div>
1537 <div style="position:absolute;top:7527;left:720">454</div>
1538 <div style="position:absolute;top:7544;left:270">Incremental Migration and JUnit Mode</div>
1539 <div style="position:absolute;top:7544;left:720">455</div>
1540 <div style="position:absolute;top:7564;left:270">Converting JUnit Code</div>
1541 <div style="position:absolute;top:7564;left:720">456</div>
1544 <div style="position:absolute;top:7583;left:288">Assertions</div>
1548 <div style="position:absolute;top:7582;left:720">457</div>
1551 <div style="position:absolute;top:7600;left:288">Running a Single Test</div>
1554 <div style="position:absolute;top:7599;left:720">458</div>
1557 <div style="position:absolute;top:7616;left:288">Maintaining State between Invocations</div>
1561 <div style="position:absolute;top:7615;left:720">461</div>
1564 <div style="position:absolute;top:7633;left:288">Suite-wide Initialization</div>
1567 <div style="position:absolute;top:7632;left:720">463</div>
1570 <div style="position:absolute;top:7649;left:288">Class-wide Initialization</div>
1574 <div style="position:absolute;top:7648;left:720">463</div>
1577 <div style="position:absolute;top:7666;left:288">The AllTests Pattern</div>
1580 <div style="position:absolute;top:7665;left:720">463</div>
1583 <div style="position:absolute;top:7682;left:288">Testing Exceptions</div>
1586 <div style="position:absolute;top:7681;left:720">467</div>
1590 <div style="position:absolute;top:7699;left:288">The Parameterized Test Case Pattern</div>
1593 <div style="position:absolute;top:7698;left:720">469</div>
1596 <div style="position:absolute;top:7742;left:270">Index</div>
1597 <div style="position:absolute;top:7742;left:715">471</div>
1600 <div style="position:absolute;top:6844;left:90">Beust.book Page xi Thursday, August 16, 2007 10:…
1604 <div style="position:absolute;top:7924;left:0"><hr><table border="0" width="100%"><tr><td bgcolor="…
1605 <div style="position:absolute;top:7951;left:90">Beust.book Page xii Thursday, August 16, 2007 10…