Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Stubs and Wrappers

2008-06-12
2013-04-22
  • Sumanth Gowda
    Sumanth Gowda
    2008-06-12

    Hello,

    My testing class has dependencies on the many other classes. To simulate certain conditions for my test cases I will have to stub external methods. This will force me to re implement all my external methods. Is there any way I can write stubs and at the same time retain original implementation too. This gives me choice to either call stubs or original code depending on my testcases. Is any one working on such topics? If so how can this be achieved without modifying the source code of the testing class or function.

    Have seen some features in few testing frameworks which are paid. But I was thinking of extending CPPunit test framework.

    Any inputs in this regards will be appreciated.

    Thank you
    Sumanth