stubs

What is wrong with Stubs for unit testing?

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...

When should I stub out a type by manually creating a "stub" version, rather than using a mocking framework

Are there any circumstances where it is favourable to manually create a stub type, as opposed to using a mocking framework (such as Rhino Mocks) at the point of test. We take both these approaches in our projects. My gut feel when I look at the long list of stub versions of objects is that it will add maintenance overhead, and moves the...

Why do we need mocking frameworks like Easymock , JMock or Mockito?

Hi, We use hand written stubs in our unit tests and I'm exploring the need for a Mock framework like EasyMock or Mockito in our project. I do not find a compelling reason for switching to Mocking frameworks from hand written stubs. Can anyone please answer why one would opt for mocking frameworks when they are already doing unit tests...

autotools: don't include library when doing “make check”

So I'm writing tests for my code, and I want to stub out the calls to library functions (make sure that it's calling the right library calls at the right time, and that it handles errors appropriately). I think I'm SOL with the C standard library functions, but those aren't the only libraries I'm using. When building my final executabl...

How to create stubs from WSDL in java, for android?

Hi all, I would like to create stubs from a wsdl file for Android. Are there any tools that would create the stubs for Android? Like how "wtk" (Wireless toolkit from Sun) can be used for CLDC compatible, BlackBerry. I do not prefer to use Ksoap2 as it is heavy. Any suggestions? ...