Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Garbage collected teardown

1,253 views

Published on

  • Be the first to comment

  • Be the first to like this

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

×