class TestProxy : TestWrapper

Proxy for test objects.

Objects of this class delegate all operations to the shadowed test object. One major use-case for this class is to refer to a test that is already owned by another test suite.



Public Members:
    TestProxy ( const string& name, Test* test ) ;
    Create a proxy for the given test object.
    The proxy shadows the test object. It is assumed that the shadowed test is owned by another object, so it is not deleted when the proxy is destroyed.

    TestProxy ( Test* test ) ;
    Create a proxy for the given test object.
    Like above, but with no specific name, so "Proxy" is used instead.

    TestProxy ( const TestProxy& src ) ;
    Copy constructor.
    Name and shadowed test are copied.

    TestProxy& operator= (const TestProxy& rhs) ;
    Assignment operator.
    Only the target object is copied!. The name of the proxy stays unchanged. This allows target redirection without renaming the proxy itself. If an exact copy is needed, a new object could be created.




The Scrunitizer C++ Unit Test Framework
by Bernd Linowski

[Scrunitizer]  [Overview]  [Cookbook]  [Download]  [Index]  [Linosphere]

Page generated: 1 Nov 2000
(C) by Bernd Linowski
scrunitizer@linosphere.de