• DocumentCode
    593878
  • Title

    On the effect of aspect-oriented refactoring on testability of classes: A case study

  • Author

    Badri, Mourad ; Kout, A. ; Badri, L.

  • Author_Institution
    Dept. of Math. & Comput. Sci., Univ. of Quebec, Trois-Rivières, QC, Canada
  • fYear
    2012
  • fDate
    18-20 Dec. 2012
  • Firstpage
    1
  • Lastpage
    7
  • Abstract
    This paper aims at investigating empirically the effect of aspect-oriented refactoring on testability of classes in object-oriented software. We investigate testability from the perspective of unit testing. We performed an empirical analysis using (test suites and refactoring) data collected from a well-known open source Java software system (JHotdraw). We used, in fact, two versions of JHotDraw: the Java version (before aspect-oriented refactoring) and the AspectJ version (after aspect-oriented refactoring). To capture testability of classes, we used two metrics to quantify the corresponding JUnit test cases. JUnit test cases have been generated using a tool (CodePro). We also used object-oriented metrics to measure various source code attributes (coupling, cohesion, inheritance, complexity and size). In order to investigate the effect of aspect-oriented refactoring on testability of classes (characteristics of corresponding test cases), we used statistical tests. Results provide evidence that testability of the refactored classes has been improved.
  • Keywords
    Java; aspect-oriented programming; program testing; public domain software; CodePro tool; JHotdraw; aspect oriented refactoring effect; classes testability; object-oriented software; open source Java software system; source code; unit testing perspective; Complexity theory; Couplings; Java; Measurement; Software systems; Testing; Aspect Refactoring; Aspect-Oriented; Empirical Analysis; Metrics; Object-Oriented; Software Attributes; Software Testability; Unit Testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Computer Systems and Industrial Informatics (ICCSII), 2012 International Conference on
  • Conference_Location
    Sharjah
  • Print_ISBN
    978-1-4673-5155-3
  • Type

    conf

  • DOI
    10.1109/ICCSII.2012.6454577
  • Filename
    6454577