TestFactory

   
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.

Figure C-20. The abstract class TestFactory
figs/utf_ac20.gif

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.



Unit Test Frameworks
Unit Test Frameworks
ISBN: 0596006896
EAN: 2147483647
Year: 2006
Pages: 146
Authors: Paul Hamill

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net