Abstract
This paper examines whether test problems that occur speci- fically during unit testing of object-oriented programs can be solved using the aspect-oriented programming paradigm.
It presents the various problems in unit testing, shows conventional solutions and describes aspect-oriented solutions to the problems. The aspect-oriented solutions are supported by the unit test framework FlexTest of which the paper gives an overview.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Vösgen, M.: FlexTest Framework (2005), http://swt.cs.tu-berlin.de/~mvoesgen/Stuff/flextest.zip
Binder, R.V.: Testing Object-Oriented Systems. Object Technology Series. Addison-Wesley, Reading (1999)
JUnit: JUnit-Homepage (2005), http://www.junit.org
AspectJ: AspectJ-Homepage (2005), http://www.aspectj.org
Filman, R.E., Friedman, D.P.: Aspect-Oriented Programming is Quantification and Obliviousness. In: Workshop on Advanced Separation of Concerns, 19th Annual ACM Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA), Minneapolis, Minnesota, USA (2000)
Liskov, B.: Data Abstraction and Hierarchy. In: Addendum to the proceedings on Object-oriented programming systems, languages and applications, Orlando, Florida, USA, pp. 17–34 (1987)
Mackinnon, T., Freeman, S., Craig, P.: EndoTesting: Unit Testing with Mock Objects. In: Extreme Programming and Flexible Processes in Software Engineering (XP), Cagliari, Italy (2000)
Lesiecki, N.: Test Flexibility with AspectJ and Mock Objects (2002), http://www-106.ibm.com/developerworks/java/library/j-aspectj2/
Avgustinov, P., Christensen, A.S., Hendren, L., Kuzins, S., Lhotak, J., Lhotak, O., de Moor, O., Sereni, D., Sittampalam, G., Tibble, J.: abc: An Extensible AspectJ Compiler. In: International Conference on Aspect-Oriented Software Development (AOSD), Chicago, Illinois, USA (2005)
Sokenou, D., Herrmann, S.: Using Object Teams for State-Based Class Testing. Technical report, Technische Universität Berlin, Fakultät IV - Elektrotechnik und Informatik, Berlin, Germany (2004)
Bruel, J.M., Araújo, J., Moreira, A., Royer, A.: Using Aspects to Develop Built-In Tests for Components. In: AOSD Modeling with UML Workshop, 6th International Conference on the Unified Modeling Language (UML), San Francisco, California, USA (2003)
Deters, M., Cytron, R.K.: Introduction of Program Instrumentation using Aspects. In: Workshop of Advanced Separation of Concerns in Object-Oriented Systems, 16th Conference on Object-Oriented Programming Systems, Languages, and Applications (OOPSLA), ACM Sigplan Notices, Tampa, Florida, USA (2001)
Filman, R.E., Havelund, K.: Source-Code Instrumentation and Quantification of Events. In: Workshop on Foundations of Aspect-Oriented Languages, 1st Intern ational Conference on Aspect-Oriented Software Development (AOSD), Enschede, Netherlands (2002)
Low, T.: Designing, Modelling and Implementing a Toolkit for Aspect-oriented Tracing (TAST). In: Workshop on Aspect-Oriented Modeling with UML, 1st International Conference on Aspect-Oriented Software Development (AOSD), Enschede, Netherlands (2002)
Mahrenholz, D., Spinczyk, O., Schröder-Preikschat, W.: Program Instrumentation for Debugging and Monitoring with AspectC++. In: Proceedings of The 5th IEEE International Symposium on Object-oriented Real-time Distributed Computing (ISORC), Crystal City, Virginia, USA (2002)
Richters, M., Gogolla, M.: Aspect-Oriented Monitoring of UML and OCL Constraints. In: AOSD Modeling With UML Workshop, 6th International Conference on the Unified Modeling Language (UML), San Francisco, California, USA (2003)
Briand, L.C., Dzidek, W., Labiche, Y.: Using Aspect-Oriented Programming to Instrument OCL Contracts in Java. Technical report, Carlton University, Ottawa, Canada (2004)
Xu, G., Yang, Z., Huang, H.: A Basic Model for Aspect-Oriented Unit Testing, http://www.cs.ecnu.edu.cn/sel/~harryxu/research/papers/fates04_aspect-oriented
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2005 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Sokenou, D., Vösgen, M. (2005). FlexTest: An Aspect-Oriented Framework for Unit Testing. In: Reussner, R., Mayer, J., Stafford, J.A., Overhage, S., Becker, S., Schroeder, P.J. (eds) Quality of Software Architectures and Software Quality. QoSA SOQUA 2005 2005. Lecture Notes in Computer Science, vol 3712. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11558569_19
Download citation
DOI: https://doi.org/10.1007/11558569_19
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-29033-9
Online ISBN: 978-3-540-32056-2
eBook Packages: Computer ScienceComputer Science (R0)