In-line Teardown



2010   7   24
•   (ry


                •




2010   7   24
•          gc
                                Tear
                    down




2010   7   24
•


                • SUT
                        GC



2010   7   24
• teardown




2010   7   24
When to Use it

                •         teardown



                •
                                In-line Teardown

...
• Unrepeatable Tests   Slow Tests




2010   7   24
• Fixture
                  teardown               Tests as
                  Documentation



                • teardown
...
•                  teardown logic




                • Testcase Class per Fixture
                            Automated T...
• Implict Teardown
                           In line Teardown



                •


2010   7   24
•

                •
                               in-line Teardown



                •
                                ...
Implementation Notes
                •                             Assertion
                    Method                   ...
• In-line Teardown
                         teardown




                •
                                         (Java
...
Variation: Teardown Guard
                               Clause
                • teardown

                    guard

   ...
Variation: Delegated Teardown
                • teardown                   Test Method
                               Test...
Variation: Naive In-line
                            Teardown

                • Naive In-line Teardown     try/finallybloc...
Refactoring Notes

                • In-line Teardown
                • Teardown Guard Clause
                • Multiresou...
Upcoming SlideShare
Loading in …5
×

In line teardown

762
-1

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
762
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

In line teardown

  1. 1. In-line Teardown 2010 7 24
  2. 2. • (ry • 2010 7 24
  3. 3. • gc Tear down 2010 7 24
  4. 4. • • SUT GC 2010 7 24
  5. 5. • teardown 2010 7 24
  6. 6. When to Use it • teardown • In-line Teardown 2010 7 24
  7. 7. • Unrepeatable Tests Slow Tests 2010 7 24
  8. 8. • Fixture teardown Tests as Documentation • teardown High Test Maintenance Cost 2010 7 24
  9. 9. • teardown logic • Testcase Class per Fixture Automated Teardown (page 503) use Implicit Teardown (page 516) 2010 7 24
  10. 10. • Implict Teardown In line Teardown • 2010 7 24
  11. 11. • • in-line Teardown • Garbage- Collected Teardown 2010 7 24
  12. 12. Implementation Notes • Assertion Method SUT Test Method teardown • tear down 2010 7 24
  13. 13. • In-line Teardown teardown • (Java finally ) 2010 7 24
  14. 14. Variation: Teardown Guard Clause • teardown guard • ( ^^;) 2010 7 24
  15. 15. Variation: Delegated Teardown • teardown Test Method Test Utility Method • teardown SUT Implict Teardown 2010 7 24
  16. 16. Variation: Naive In-line Teardown • Naive In-line Teardown try/finallyblock teardown 2010 7 24
  17. 17. Refactoring Notes • In-line Teardown • Teardown Guard Clause • Multiresource In-line Teardown (Java) • Delegated Teardown 2010 7 24
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×