Commenced in January 2007
Paper Count: 31093
Unit Testing with Déjà-Vu Objects
Abstract:In this paper we introduce a new unit test technique called déjà-vu object. Déjà-vu objects replace real objects used by classes under test, allowing the execution of isolated unit tests. A déjà-vu object is able to observe and record the behaviour of a real object during real sessions, and to replace it during unit tests, returning previously recorded results. Consequently déjà-vu object technique can be useful when a bottom-up development and testing strategy is adopted. In this case déjà-vu objects can increase test portability and test source code readability. At the same time they can reduce the time spent by programmers to develop test code and the risk of incompatibility during the switching between déjà-vu and production code.
Digital Object Identifier (DOI): doi.org/10.5281/zenodo.1081513Procedia APA BibTeX Chicago EndNote Harvard JSON MLA RIS XML ISO 690 PDF Downloads 2296
 G.J.Myers. The Art of Software Testing (second edition), John Wiley & Sons, Inc. 2004.
 R.Binder. Testing object-oriented systems: models, patterns, and tools, Reading Mass.: Addison-Wesley, 1999.
 T.Mackinnon, S.Freeman, P.Craig. "Endo-Testing: Unit Testing with Mock Objects", in Proceedings of the International Conference on eXtreme Programming and Flexible Process in Software Engineering (XP2000), 2000.
 K.Beck. Test-Driven Develpment by example, Addison-Wesley, 2003.
 E.Gamma, R.Helm, R.Johnson, J.Vlissides. Design Patterns: Elements of Reusable Object-Oriented Software, Addison Wesley, 1994.
 K.Beck. Extreme programming explained: embrace change, Addison- Wesley, 1999.
 Mock object Web site, http://www.mockobjects.com
 M.A.Brown, E.Tapolcsanyi. "Mock object patters", in Proceedings of The 10th Conference on Pattern Languages of Programs (PLOP03), 2003.
 V.Massol JUnit in action, Manning, 2004.
 S.Freeman, N.Pryce, T.Mackinnon, J.Walnes "Mock roles, not objects", in Proceedings of the 19th Annual ACM Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA 2004).
 The Free Dictionary, Farlex, Inc., 2006 http://computingdictionary. thefreedictionary.com
 The WebMINDS Project Web site, http://web-minds.consorzio-cini.it/
 Advanced Distributed Learning Web site, http://www.adlnet.gov/
 Wikipedia - The free encyclopedia 2006, PABX definition, http://en.wikipedia.org/wiki/PABX
 Ecma International Web site, http://www.ecma-international.org/