Name

TestFactory

Description

The abstract class TestFactory (see Figure C-20) defines the interface for a factory that produces Test objects.

TestFactory belongs to the namespace CppUnit. It is declared in extensions/TestFactory.h. It is abstract and has no implementation.

The abstract class TestFactory
Figure C-20. The abstract class TestFactory

Declaration

class TestFactory

Constructors/Destructors

virtual ~TestFactory( )

A destructor.

Public Methods

virtual Test* makeTest( ) = 0

A pure, virtual method to create a Test.

Protected/Private Methods

None.

Attributes

None.

Get Unit Test Frameworks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.