• DocumentCode
    3156425
  • Title

    A Test-Driven Approach to Developing Pointcut Descriptors in AspectJ

  • Author

    Delamare, Romain ; Baudry, Benoit ; Ghosh, Sudipto ; Le Traon, Yves

  • Author_Institution
    IRIS, INRIA Rennes, Rennes
  • fYear
    2009
  • fDate
    1-4 April 2009
  • Firstpage
    376
  • Lastpage
    385
  • 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.
  • Keywords
    Java; object-oriented programming; program testing; AOP languages; AdviceTracer; AspectJ; JUnit API; aspect-oriented programming; mutation tool; pointcut descriptors; test-driven approach; testing techniques; Fault detection; Fault diagnosis; Genetic mutations; Performance evaluation; Runtime; Software testing; System testing; Weaving; Aspect-oriented programming; joinpoints; mutation analysis; pointcut descriptors; test-driven development; testing tool;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Testing Verification and Validation, 2009. ICST '09. International Conference on
  • Conference_Location
    Denver, CO
  • Print_ISBN
    978-1-4244-3775-7
  • Electronic_ISBN
    978-0-7695-3601-9
  • Type

    conf

  • DOI
    10.1109/ICST.2009.41
  • Filename
    4815371