SetUp and tearDown cannot be replaced by constructor and destructor, as they are internally protected from exceptions thrown by approval macros. This way you can add an affirmation macro to setUp or tearDown, but you cannot do this in the destructor and you will have some problems in the constructor.
cppunit Junit, . setUp tearDown setUp/tearDown.