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

M. Badri, Aymen Kout, L. Badri
{"title":"On the effect of aspect-oriented refactoring on testability of classes: A case study","authors":"M. Badri, Aymen Kout, L. Badri","doi":"10.1109/ICCSII.2012.6454577","DOIUrl":null,"url":null,"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.","PeriodicalId":281140,"journal":{"name":"2012 International Conference on Computer Systems and Industrial Informatics","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2012-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"7","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 International Conference on Computer Systems and Industrial Informatics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCSII.2012.6454577","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
面向方面重构对类可测试性的影响:一个案例研究
本文旨在实证研究面向方面重构对面向对象软件中类的可测试性的影响。我们从单元测试的角度来研究可测试性。我们使用从一个知名的开源Java软件系统(JHotdraw)收集的数据(测试套件和重构)进行了实证分析。事实上,我们使用了两个版本的JHotDraw: Java版本(在面向方面重构之前)和AspectJ版本(在面向方面重构之后)。为了获取类的可测试性,我们使用了两个度量来量化相应的JUnit测试用例。使用工具(CodePro)生成JUnit测试用例。我们还使用面向对象的度量来度量各种源代码属性(耦合、内聚、继承、复杂性和大小)。为了研究面向方面重构对类的可测试性(相应测试用例的特征)的影响,我们使用了统计测试。结果表明,重构类的可测试性得到了改善。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
High-speed KATAN ciphers on-a-chip Developing context-dependent service-oriented applications On understanding software quality evolution from a defect perspective: A case study on an open source software system Computers and e-Health: Roles and new applications A systolic-based architecture for a novel reduced-complexity GPS receiver
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1