answersLogoWhite

0

A stub class is used during unit testing. When developing classes, a stub class is developed alongside the actual class in order to simulate the member functions of the class, to ensure the function has been called at the expected point, to enable parameters to be checked against expected values and to return values. Stub class source code is stored in the "stubs library". When testing a class, its stub is copied into a test stubs file which drives the test.

User Avatar

Wiki User

10y ago

What else can I help you with?