Use path testing to generate test cases for all the methods of the NetworkConnection class depicted in Figure 11-15 and in Figure 8-11. Expand first the source code to remove any polymorphism. How many test cases did you generate using path testing? How many test cases would you generate when the source code is not expanded?

What will be an ideal response?

The receive() and setNetworkInterface() methods would yield only one test case without expanding the source


code, since they do not have decision points. However, receive() has one polymorphic message send that could be


bound to three different classes, resulting in three test cases. setNetworkInterface() has two that could be each


independently bound to three different classes, resulting in six test cases. See Table 11-2.











Computer Science & Information Technology

You might also like to view...

________ is a process of hiding records that do not meet specified criteria in a data set

Fill in the blank(s) with correct word

Computer Science & Information Technology

How is a distributed IPAM server topology configured?

What will be an ideal response?

Computer Science & Information Technology