7.3 Summary


7.3 Summary

Inheritance hierarchies, interfaces, and polymorphism are different variants of the same object-oriented idea: objects can present themselves from different angles as they take one type or another. For the user of objects, only the type and not the concrete implementation plays a role.

From the developer's perspective, this idea results in a number of benefits, while the tester has to struggle with the traps of complexity hidden behind the cloak of simplicity.

This chapter discussed both the theoretical foundations for a better understanding of the problems involved in inheritance and polymorphism and techniques to solve some of these problems. These techniques include reuse of the superclass tests and testing of interfaces.




Unit Testing in Java. How Tests Drive the Code
Unit Testing in Java: How Tests Drive the Code (The Morgan Kaufmann Series in Software Engineering and Programming)
ISBN: 1558608680
EAN: 2147483647
Year: 2003
Pages: 144
Authors: Johannes Link

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