Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 391139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:01:57+00:00 2026-05-12T16:01:57+00:00

I just watched this funny YouTube Video about unit testing (it’s Hitler with fake

  • 0

I just watched this funny YouTube Video about unit testing (it’s Hitler with fake subtitles chewing out his team for not doing good unit tests–skip it if you’re humor impaired) where stubs get roundly criticized. But I don’t understand what wrong with stubs.

I haven’t started using a mocking framework and I haven’t started feeling the pain from not using one.

Am I in for a world a hurt sometime down the line, having chosen handwritten stubs and fakes instead of mocks (like Rhinomock etc)? (using Fowler’s taxonomy)

What are the considerations for picking between a mock and handwritten stub?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:01:58+00:00Added an answer on May 12, 2026 at 4:01 pm

    There is nothing wrong with stubs, there is room for stubs, mocks… and spies. All are “test doubles”, but with different purposes as explained in Mocks and Stubs aren’t Spies:

    […] Before moving on, I’d like to
    clarify and define some terms in use
    here, which I originally discovered in
    Gerard Meszaros’ xUnit Patterns
    book
    .

    • A Dummy Object is a placeholder object passed to the system under test
      but never used.
    • A Test Stub provides the system under test with indirect input
    • A Test Spy provides a way to verify that the system under test performed
      the correct indirect output
    • A Mock Object provides the system under test with both indirect input
      and a way to verify indirect output

    […] And you can let this handy chart
    guide your decisions:

    alt text

    PS: Mockito – The New Mock Framework on the Block is worth the read too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just watched a video about unit testing WebOS applications and they used the
I've just watched this video showing off an app: https://www.youtube.com/watch?v=2qM3Zps_0pE&feature=player_embedded At 3:34. How in
I just watched a video of Douglas Crockford's presentation about his 2009 book JavaScript:
I've just heard about this umbraco ago and watched the demo on the official
I watched a video today and the guy in the video just write this
I just watched this: http://blog.mongodb.org/post/38467892360/mongodb-schema-design-insights-and-tradeoffs-from One suggestion that came out of the talk: in
I just watched a video regarding the Report Designer. It said to go to
I just watched a Google tech talk video covering Polyworld (found here ) and
i have just gone through knockoutjs and watched the video provided on the site
I am a starter of web design and Photoshop, and I just watched this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.