Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] testing protected/private methods out of test suits
From: M. Siebeneicher (trashing_at_[hidden])
Date: 2008-09-19 02:34:28


> M. Siebeneicher writes:
> > I tried to test protected/private class methods by declaring the
> > test-case-class as a friend of the class-to-test.
>
> Here's what we do to unit test our classes:
>
> #define private public
> #define protected public
> #include <common/Blob.hpp>
>
> This makes our unit testing much easier! ;-)
>
> Cheers,
>
> --
> Robert

I did this before but now it doesn't work 'cause the class_to_test lies in another library than the test_case_class.

greetz,
Manuel

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

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