Skip to main content

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 3092))

  • 1666 Accesses

Abstract

This article shows how to use AspectJ to create an Abstract Test Aspect, that makes sure objects respect their basic contracts given by base classes or implemented interfaces. The approach presented is an aspect-oriented alternative to Abstract Test Case.

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. Anonymous. Java API overview. Sun Developer NEWS, 1(1):10, 11 (Fall 1996)

    Google Scholar 

  2. George, E.: Abstract test cases, http://c2.com/cgi/wiki?AbstractTestCases

  3. Kiczales, G., Lamping, J., Mendhekar, A., Maeda, C., Lopes, C., Loingtier, J.-M., Irwin, J.: Aspect-oriented programming. In: Aksit, M., Matsuoka, S. (eds.) ECOOP 1997. LNCS, vol. 1241, pp. 220–242. Springer, Heidelberg (1997)

    Chapter  Google Scholar 

  4. Liskov, B.: Data abstraction and hierarchy. In: Proceedings of the ACM Conference on Object-Oriented Programming Systems, Languages, and Applications (December 1987)

    Google Scholar 

  5. Mackinnon, T., Freeman, S., Craig, P.: Endotesting: Unit testing with mockobjects (2000)

    Google Scholar 

  6. Meyer, B.: Applying design by contract. Computer (IEEE) 25(10), 40–51 (1992)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Wenner, R. (2004). Abstract Test Aspect: Testing with AOP. In: Eckstein, J., Baumeister, H. (eds) Extreme Programming and Agile Processes in Software Engineering. XP 2004. Lecture Notes in Computer Science, vol 3092. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-24853-8_31

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-24853-8_31

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-22137-1

  • Online ISBN: 978-3-540-24853-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics