A Test-Driven Approach to Developing Pointcut Descriptors in AspectJ

被引:13
|
作者
Delamare, Romain [1 ]
Baudry, Benoit [1 ]
Ghosh, Sudipto [2 ]
Le Traon, Yves [3 ]
机构
[1] IRISA INRIA Rennes, Rennes, France
[2] Colorado State Univ, Colorado Springs, CO USA
[3] T Telecom Bretagn, Plouzane, France
关键词
Aspect-oriented programming; joinpoints; pointcut descriptors; mutation analysis; test-driven development; testing tool;
D O I
10.1109/ICST.2009.41
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 point-cut descriptor (PCD) that provides a convenient way to declaratively specify a set of joinpoints in the protogram 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.
引用
收藏
页码:376 / +
页数:2
相关论文
共 50 条
  • [1] An approach for testing pointcut descriptors in AspectJ
    Delamare, Romain
    Baudry, Benoit
    Ghosh, Sudipto
    Gupta, Shashank
    Le Traon, Yves
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2011, 21 (03): : 215 - 239
  • [2] AjMutator: A Tool For The Mutation Analysis Of AspectJ Pointcut Descriptors
    Delamare, Romain
    Baudry, Benoit
    Le Traon, Yves
    ICSTW 2009: IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION, AND VALIDATION WORKSHOPS, 2009, : 200 - +
  • [3] A Test-Driven Approach for Developing Software Languages
    Badreddin, Omar
    Forward, Andrew
    Lethbridge, Timothy C.
    PROCEEDINGS OF THE 2014 2ND INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING AND SOFTWARE DEVELOPMENT (MODELSWARD 2014), 2014, : 225 - 234
  • [4] A test-driven approach to developing embedded software
    Underseth, Mark
    EE-EVALUATION ENGINEERING, 2007, 46 (04): : 44 - +
  • [5] Teachers' Attitude to Test-driven Accountability; Developing a Comprehensive Approach to Assessment
    Khalvandi, Fatemeh
    Chenari, Mahin
    INTERNATIONAL CONFERENCE ON EDUCATION & EDUCATIONAL PSYCHOLOGY (ICEEPSY 2012), 2012, 69 : 1548 - 1554
  • [6] A holistic approach to test-driven model checking
    Belli, F
    Güldali, B
    INNOVATIONS IN APPLIED ARTIFICIAL INTELLIGENCE, 2005, 3533 : 321 - 331
  • [7] An approach to test-driven development of conceptual schemas
    Tort, Albert
    Olive, Antoni
    Sancho, Maria-Ribera
    DATA & KNOWLEDGE ENGINEERING, 2011, 70 (12) : 1088 - 1111
  • [8] Test-Driven Development - Still a Promising Approach?
    Kollanus, Sami
    QUATIC 2010: SEVENTH INTERNATIONAL CONFERENCE ON THE QUALITY OF INFORMATION AND COMMUNICATIONS TECHNOLOGY, 2010, : 403 - 408
  • [9] A test-driven based COTS developing model and evolution analysis
    Wang Hongxia
    Seng Dewen
    ICMS2010: PROCEEDINGS OF THE THIRD INTERNATIONAL CONFERENCE ON MODELLING AND SIMULATION, VOL 6: MODELLING & SIMULATION INDUSTRIAL ENGINEERING & MANAGEMENT, 2010, : 63 - 66
  • [10] Test-driven programming
    Georgiev, Bozhidar
    Georgieva, Adriana
    39TH INTERNATIONAL CONFERENCE APPLICATIONS OF MATHEMATICS IN ENGINEERING AND ECONOMICS (AMEE13), 2013, 1570 : 455 - 460