Purpose of using class factories
When testing C++ source code, it is difficult to test because abstract classes cannot create objects. Class factories can facilitate testing of abstract classes and reduce the iterations that occur when designing class objects.
The main features of class factories
- Automatically create concrete classes that inherits from an abstract class
- Minimize repetitive tasks by applying them to tests all together
Utilizing class factories
This document explains the basic concepts for testing C++ before using class factories. After that, it explains how to utilize class factories.
Need more help with this?
Don’t hesitate to contact us here.