A Test-Driven Approach to Developing Pointcut Descriptors in AspectJ - Archive ouverte HAL Access content directly
Conference Papers Year : 2009

A Test-Driven Approach to Developing Pointcut Descriptors in AspectJ

(1) , (1) , (2) , (1)


Aspect-oriented programming (AOP) languages introduce new constructs that can lead to new types of faults, which must be targeted by testing techniques. In particular, AOP languages such as AspectJ use a pointcut descriptor (PCD) that provides a convenient way to declaratively specify a set of joinpoints in the program where the aspect should be woven. However, a major difficulty when testing that the PCD matches the intended set of joinpoints is the lack of precise specification for this set other than the PCD itself. In this paper, we propose a test-driven approach for the development and validation of the PCD. We developed a tool, AdviceTracer, which enriches the JUnit API with new types of assertions that can be used to specify the expected joinpoints. In order to validate our approach, we also developed a mutation tool that systematically injects faults into PCDs. Using these two tools, we perform experiments to validate that our approach can be applied for specifying expected joinpoints and for detecting faults in the PCD.
Fichier principal
Vignette du fichier
Delamare09a.pdf (159.03 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

inria-00477530 , version 1 (29-04-2010)


  • HAL Id : inria-00477530 , version 1


Romain Delamare, Benoit Baudry, Sudipto Ghosh, Yves Le Traon. A Test-Driven Approach to Developing Pointcut Descriptors in AspectJ. ICST '09: Proceedings of the 2$^nd$ International Conference on Software Testing, Verification, and Validation, 2009, Denver, Colorado, USA, United States. ⟨inria-00477530⟩
104 View
147 Download


Gmail Facebook Twitter LinkedIn More