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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Anonymous. Java API overview. Sun Developer NEWS, 1(1):10, 11 (Fall 1996)
George, E.: Abstract test cases, http://c2.com/cgi/wiki?AbstractTestCases
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)
Liskov, B.: Data abstraction and hierarchy. In: Proceedings of the ACM Conference on Object-Oriented Programming Systems, Languages, and Applications (December 1987)
Mackinnon, T., Freeman, S., Craig, P.: Endotesting: Unit testing with mockobjects (2000)
Meyer, B.: Applying design by contract. Computer (IEEE) 25(10), 40–51 (1992)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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