DocumentCode :
1727974
Title :
Automated Generation of Pointcut Mutants for Testing Pointcuts in AspectJ Programs
Author :
Anbalagan, Prasanth ; Xie, Tao
Author_Institution :
Dept. of Comput. Sci., North Carolina State Univ., NC
fYear :
2008
Firstpage :
239
Lastpage :
248
Abstract :
Aspect-oriented programming (AOP) provides new modularization of software systems by encapsulating cross-cutting concerns. AspectJ, an AOP language, uses abstractions such as pointcuts, advice, and aspects to achieve AOPpsilas primary functionality. Faults in pointcuts can cause aspects to fail to satisfy their requirements. Hence, testing pointcuts is necessary in order to ensure correctness of aspects. In mutation testing of pointcuts (a type of fault-based pointcut testing), the number of mutants (i.e., variations) for pointcuts is usually large due to the usage of wildcards. It is tedious to manually identify effective mutants that are of appropriate strength and resemble closely the original pointcut expression, reflecting the kind of mistakes that developers may make. To reduce developerspsila effort in this process, we have developed a new framework that automatically identifies the strength of each pointcut and generates pointcut mutants with different strengths. Developers can inspect the pointcut mutants and their join points for pointcut correctness or choose the mutants for conducting mutation testing. We conducted an empirical study on applying our framework on pointcuts from existing AspectJ programs. The results show that our framework can provide valuable assistance in generating effective mutants that are close to the original pointcuts and are of appropriate strength.
Keywords :
object-oriented programming; program testing; AspectJ program pointcut testing; aspect-oriented programming; automated pointcut mutant generation; cross-cutting concern encapsulation; mutant testing; software system modularization; Automatic programming; Automatic testing; Computer science; Fault detection; Genetic mutations; Reliability engineering; Software reliability; Software systems; Software testing; System testing; Aspect-Oriented Programs; AspectJ; Mutation Testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Reliability Engineering, 2008. ISSRE 2008. 19th International Symposium on
Conference_Location :
Seattle, WA
ISSN :
1071-9458
Print_ISBN :
978-0-7695-3405-3
Electronic_ISBN :
1071-9458
Type :
conf
DOI :
10.1109/ISSRE.2008.58
Filename :
4700329
Link To Document :
بازگشت