Garbage collected teardown

988 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
988
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Garbage collected teardown

  1. 1. xUnit Test Patterns Chapter 22 Fixture Teardown Patterns 2010/7/24 2010 7 24
  2. 2. Garbage-Collected Teardown 2010 7 24
  3. 3. Garbage-Collected Teardown • fixture tear down →Fresh Fixture • Garbage Collection(GC) 2010 7 24
  4. 4. How it Works • transient ( ) • GC 2010 7 24
  5. 5. • • global (static) GC • Test Automation Framework Testcase Class Test Methods Testcase Object 2010 7 24 Test suite Object
  6. 6. • suite suite 2010 7 24
  7. 7. When to Use it • Garbage-Collected Teardown • GC GC ( DB ) 2010 7 24
  8. 8. • Shared Fixture fixture fixture Garbage- Collected Teardown 2010 7 24
  9. 9. • In-line Teardown (page 509), Implicit Teardown (page 516), Automated Teardown (page 503) to 2010 7 24
  10. 10. Implementation Notes • xUnit family IDE test sutie • Reload Classes 2010 7 24
  11. 11. • fixture Garbage-Collected Teardown IDE 2010 7 24
  12. 12. Motivating Example • fixture In-line Teardown • proposedFlight 2010 7 24
  13. 13. • Garbage-Collected Teardown • Shared Fixture Fresh Fixture 2010 7 24

×