A Test Environment

Class Testing

Class testing of distributed components often requires a special environment such as the one illustrated in Figure 8.7. The purpose of this environment is to provide a means of trapping messages to the OUT so that issues such as the timing of messages can be analyzed and changes of state can be logged.

Figure 8.6. The always temporal operator

Figure 8.7. Class testing wrapper

This wrapper is an object that simply encapsulates the OUT. We have used various types of implementations to automatically extract the interface ...

Get A Practical Guide to Testing Object-Oriented Software 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.