Boost logo

Boost Users :

Subject: Re: [Boost-users] How to isolate a class under test?
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2010-06-09 14:27:41


 <hmiller <at> hiwaay.net> writes:

>
> I am testing class A. However, class A makes some calls to class B.
> Does Boost.Test provide any "test harness" capability so that the
> responses from class B can be canned. I really only want to test
> class A, not A and B together. I hope the question makes sense.

You need to implement stub for the class B. If you have known interface it's
pretty easy to prepare stub with pre-canned responses.

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net