• DocumentCode
    2177614
  • Title

    JAOUT: automated generation of aspect-oriented unit test

  • Author

    Xu, Guoqing ; Yang, Zongyuan ; Huang, Haitao ; Chen, Qian ; Chen, Ling ; Xu, Fengbin

  • Author_Institution
    Dept. of Comput. Sci., East China Normal Univ., Shanghai, China
  • fYear
    2004
  • fDate
    30 Nov.-3 Dec. 2004
  • Firstpage
    374
  • Lastpage
    381
  • Abstract
    Unit testing is a methodology for testing small parts of an application independently of whatever application uses them. It is time consuming and tedious to write unit tests, and it is especially difficult to write unit tests that model the pattern of usage of the application. Aspect-oriented programming (AOP) addresses the problem of separation of concerns in programs which is well suited to unit test problems. What´s more, unit tests should be made from different concerns in the application instead of just from functional assertions of correctness or error. In this paper, we firstly present a new concept, application-specific Aspects, which mean top-level aspects picked up from generic low-level aspects in AOP for specific use. It can be viewed as the separation of concerns on applications of generic low-level aspects. Second, this paper describes an aspect-oriented test description language (AOTDL) and techniques to build top-level aspects for testing on generic aspects. Third, we generate JUnit unit testing framework and test oracles from AspectJ programs by integrating our tool with AspectJ and JUnit. We use runtime exceptions thrown by testing aspects to decide whether methods work well. Finally, we present a double-phase testing way to filter out meaningless test cases in our framework.
  • Keywords
    automatic programming; formal specification; formal verification; object-oriented programming; program testing; JAOUT; aspect-oriented programming; aspect-oriented test description language; formal specification; unit testing; Application software; Automatic testing; Computer science; Error correction; Java; Logic testing; Monitoring; Runtime; Software engineering; Software testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Conference, 2004. 11th Asia-Pacific
  • ISSN
    1530-1362
  • Print_ISBN
    0-7695-2245-9
  • Type

    conf

  • DOI
    10.1109/APSEC.2004.63
  • Filename
    1371940