首页 | 本学科首页   官方微博 | 高级检索  
     检索      

自动化单元测试框架EasyMock分析及其应用
引用本文:陈丽萍,张勇,丁智敏.自动化单元测试框架EasyMock分析及其应用[J].巢湖学院学报,2014(6):34-38.
作者姓名:陈丽萍  张勇  丁智敏
作者单位:巢湖学院计算机与信息工程学院,安徽 巢湖,238000
基金项目:巢湖学院教研项目,安徽省教育厅基金,巢湖学院本科教学质量与教学改革工程资助项目
摘    要:Easy Mock是一个可以和JUnit很好的集成在一起的Mock框架,它通过构建Mock对象可以减少开发代码与测试代码的耦合,快速有效的完成单元测试、分布式系统测试。在介绍Easy Mock特点、测试框架及其应用的基础上,分析了该框架的优缺点,并针对其缺点提出了相应的解决方案。测试结果表明,注入解决方案后的Easy Mock框架可以降低Mock对象的限制,应用范围更广。

关 键 词:Easy  Mock框架  测试驱动开发  JUnit框架  单元测试  Power  Mock框架

ON ANALYSIS AND ITS APPLICATION OF THE AUTOMATIC UNIT TEST FRAMEWORK EASYMOCK
CHEN Li-ping,ZHANG Yong,DING Zhi-min.ON ANALYSIS AND ITS APPLICATION OF THE AUTOMATIC UNIT TEST FRAMEWORK EASYMOCK[J].Chaohu College Journal,2014(6):34-38.
Authors:CHEN Li-ping  ZHANG Yong  DING Zhi-min
Institution:(School of computer and Information Engineering, Chaohu College, Chaohu Anhui 238000)
Abstract:EasyMock is the Mock framework that can integrate with Junit very well. It can reduce the coupling of developing codes and testing codes by constructing the mock object and complete the unit test and the distributed system test rapidly and efficiently. On the basis of introducing the characteristics, the testing framework and the application of EasyMock, the paper makes analysis of its advantages and disadvantages and suggests some corresponding solutionsd. The testing results indicate the framework with the solutions can reduce the constraints of the mock object and can be applied more widely.
Keywords:EasyMock framework  test-driven development  JUnit framework  unit test  PowerMock framework
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号