• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Mock object
 

Mock object

on

  • 1,287 views

 

Statistics

Views

Total Views
1,287
Views on SlideShare
1,287
Embed Views
0

Actions

Likes
0
Downloads
7
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Mock object Mock object Presentation Transcript

    • Mock Object2011 3 5
    • How it works SUT Mock Object SUT2011 3 5
    • When to use it Untested Requirement (pp.273) ↑2011 3 5
    • Mock Object Test Stub equals Mock Object equals →Equality Pollution (pp.217)2011 3 5
    • Mock Object Equality Assertions comparator Mock Object Mock Object Mock Object Mock Object2011 3 5
    • Implementation Notes Mock Object SUT Test Spy2011 3 5
    • Mock Object 4 fixture 3 result verification phase (“final verification” )2011 3 5
    • Fixture Setup MockObject / Exercise SUT MocK Object Result verification “final verification” Fixture teardown2011 3 5
    • Construction Four-Phase Test fixture setup phase Mock Object Configuration with Expected Values Test Double Mock Object →Hard-Coded Test Double2011 3 5
    • Installation Test Double SUT SUT Dependency Injection Dependency Lookup2011 3 5
    • Usage SUT Mock Object Assertion ( Mock Object )2011 3 5
    • Mock Object SUT →happy path2011 3 5
    • Final Verification 1 Mock Object toolkits teardown final Verification Method2011 3 5
    • Motivating Example2011 3 5
    • Refactoring Notes Test Double Mock Object SUT Mock Object 1 final verification method2011 3 5
    • 2011 3 5
    • 2011 3 5
    • JUnit3 Mock Object TestCase Assertion Method static xUnit Family NUnit static Assert Ruby Test::Unit mixins Assert2011 3 5
    • Example: Mock Object (Dynamically Generated)2011 3 5
    • Further Reading xUnit Mock Object Mock Object Test Stub Fake Object →Appnendix B(pp.741)2011 3 5