A Test-Driven Approach to Developing Pointcut Descriptors in AspectJ

Romain Delamare 1 Benoit Baudry 1 Sudipto Ghosh 2 Yves Le Traon 1
1 TRISKELL - Reliable and efficient component based software engineering
IRISA - Institut de Recherche en Informatique et Systèmes Aléatoires, Inria Rennes – Bretagne Atlantique
Abstract : 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.
Type de document :
Communication dans un congrès
ICST '09: Proceedings of the 2$^nd$ International Conference on Software Testing, Verification, and Validation, 2009, Denver, Colorado, USA, United States. 2009
Liste complète des métadonnées

Littérature citée [16 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/inria-00477530
Contributeur : Didier Vojtisek <>
Soumis le : jeudi 29 avril 2010 - 14:24:43
Dernière modification le : jeudi 11 janvier 2018 - 06:20:11
Document(s) archivé(s) le : lundi 22 octobre 2012 - 15:30:56

Fichier

Delamare09a.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : inria-00477530, version 1

Collections

Citation

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. 2009. 〈inria-00477530〉

Partager

Métriques

Consultations de la notice

224

Téléchargements de fichiers

134