Skip to main content

FlexTest: An Aspect-Oriented Framework for Unit Testing

  • Conference paper
Quality of Software Architectures and Software Quality (QoSA 2005, SOQUA 2005)

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Vösgen, M.: FlexTest Framework (2005), http://swt.cs.tu-berlin.de/~mvoesgen/Stuff/flextest.zip

  2. Binder, R.V.: Testing Object-Oriented Systems. Object Technology Series. Addison-Wesley, Reading (1999)

    Google Scholar 

  3. JUnit: JUnit-Homepage (2005), http://www.junit.org

  4. AspectJ: AspectJ-Homepage (2005), http://www.aspectj.org

  5. 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)

    Google Scholar 

  6. 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)

    Google Scholar 

  7. 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)

    Google Scholar 

  8. Lesiecki, N.: Test Flexibility with AspectJ and Mock Objects (2002), http://www-106.ibm.com/developerworks/java/library/j-aspectj2/

  9. 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)

    Google Scholar 

  10. 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)

    Google Scholar 

  11. 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)

    Google Scholar 

  12. 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)

    Google Scholar 

  13. 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)

    Google Scholar 

  14. 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)

    Google Scholar 

  15. 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)

    Google Scholar 

  16. 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)

    Google Scholar 

  17. Briand, L.C., Dzidek, W., Labiche, Y.: Using Aspect-Oriented Programming to Instrument OCL Contracts in Java. Technical report, Carlton University, Ottawa, Canada (2004)

    Google Scholar 

  18. 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

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics