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.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.