On the Effect of Aspect-Oriented Refactoring on Testability of Classes: A Case Study

被引:0
|
作者
Badri, Mourad [1 ]
Kout, Aymen [1 ]
Badri, Linda [1 ]
机构
[1] Univ Quebec Trois Rivieres, Software Engn Res Lab, Dept Math & Comp Sci, Trois Rivieres, PQ GA9 5H7, Canada
关键词
Object-Oriented; Aspect-Oriented; Aspect Refactoring; Software Testability; Software Attributes; Unit Testing; Metrics; Empirical Analysis;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页数:7
相关论文
共 50 条
  • [1] On the effect of aspect-oriented refactoring on testability of classes: A case study
    Badri, Mourad
    Kout, Aymen
    Badri, Linda
    [J]. 2012 International Conference on Computer Systems and Industrial Informatics, ICCSII 2012, 2012,
  • [2] Investigating the Effect of Aspect-Oriented Refactoring on the Unit Testing Effort of Classes: An Empirical Evaluation
    Badri, Mourad
    Kout, Aymen
    Badri, Linda
    [J]. INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2017, 27 (05) : 749 - 789
  • [3] Investigating the Effect of Aspect-Oriented Refactoring on Software Maintainability
    Al-Jamimi, Hamdi A.
    Alshayeb, Mohammad
    Elish, Mahmoud O.
    [J]. SOFTWARE ENGINEERING AND COMPUTER SYSTEMS, PT 3, 2011, 181 : 611 - 623
  • [4] Automated inference of pointcuts in aspect-oriented refactoring
    Anbalagan, Prasanth
    Xie, Tao
    [J]. ICSE 2007: 29TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2007, : 127 - +
  • [5] Aspect-Oriented Refactoring of Legacy Applications: An Evaluation
    Mortensen, Michael
    Ghosh, Sudipto
    Bieman, James M.
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2012, 38 (01) : 118 - 140
  • [6] Empirical taxonomy of refactoring methods for aspect-oriented programming
    Alshayeb, Mohammad
    Al-Jamimi, Hamdi
    Elish, Mahmoud O.
    [J]. JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2013, 25 (01): : 1 - 25
  • [7] Semi-automatic Refactoring to Aspect-oriented Platform
    Roman, Pipik
    Polasek, Ivan
    [J]. 14TH IEEE INTERNATIONAL SYMPOSIUM ON COMPUTATIONAL INTELLIGENCE AND INFORMATICS (CINTI), 2013, : 141 - 145
  • [8] Refactoring-Safe Modeling of Aspect-Oriented Scenarios
    Mussbacher, Gunter
    Amyot, Daniel
    Whittle, Jon
    [J]. MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2009, 5795 : 286 - +
  • [9] AOLink - Automatic Gerenation of Refactoring Suggestions for Aspect-Oriented Anomalies
    Costa, Renato Silva
    Costa, Heitor
    Parreira Junior, Paulo A.
    [J]. PROCEEDINGS OF THE 2016 35TH INTERNATIONAL CONFERENCE OF THE CHILEAN COMPUTER SCIENCE SOCIETY (SCCC), 2016,
  • [10] An illustrative example of refactoring object-oriented source code with aspect-oriented mechanisms
    Monteiro, Miguel P.
    Fernandes, Joao M.
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 2008, 38 (04): : 361 - 396