面向方面重构对类可测试性的影响:一个案例研究

M. Badri, Aymen Kout, L. Badri
{"title":"面向方面重构对类可测试性的影响:一个案例研究","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":"{\"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}","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

摘要

本文旨在实证研究面向方面重构对面向对象软件中类的可测试性的影响。我们从单元测试的角度来研究可测试性。我们使用从一个知名的开源Java软件系统(JHotdraw)收集的数据(测试套件和重构)进行了实证分析。事实上,我们使用了两个版本的JHotDraw: Java版本(在面向方面重构之前)和AspectJ版本(在面向方面重构之后)。为了获取类的可测试性,我们使用了两个度量来量化相应的JUnit测试用例。使用工具(CodePro)生成JUnit测试用例。我们还使用面向对象的度量来度量各种源代码属性(耦合、内聚、继承、复杂性和大小)。为了研究面向方面重构对类的可测试性(相应测试用例的特征)的影响,我们使用了统计测试。结果表明,重构类的可测试性得到了改善。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
On the effect of aspect-oriented refactoring on testability of classes: A case study
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.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信