检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]南京工程学院计算机工程学院,江苏南京211167 [2]南京工程学院电力工程学院,江苏南京211167
出 处:《计算机技术与发展》2009年第9期115-118,185,共5页Computer Technology and Development
基 金:中央与地方高校共建实验室项目基金(301101000002);南京工程学院科研基金项目(KXJ08071;KXJ08117)
摘 要:软件开发中,软件测试的作用越来越重要。目前,轻量级Java EE框架得到了广泛流行,如何在该框架下进行高效、方便的单元测试和集成测试,具有重要意义。从轻量级Java EE框架的特点出发,结合测试驱动开发(TDD)的理念,分析了采用Mock、EasyMock进行仿真单元测试的方法;利用依赖注入(DI)与事务管理进行集成测试;对Spring与Hibernate结合的一个集成测试问题,给出了运用面向切面编程的环绕通知的解决办法。文中总结的测试方法与经验,对于轻量级框架下的管理信息系统的测试准备、部署以及实施,能够显著提高效率,同时也有助于TDD团队的组织与合作。Software testing plays a more and more important role in software development. At present, the light - weighted Java EE framework has been widely popular. In this framework, efficient and convenient unit testing and integration testing are of great significance. Based on the characteristics of light - weighted Java EE framework, combined with the idea of test - driven development (TDD), analyzes on using Mock, EasyMock to carry out simulation unit tests; makes the use of dependency injection (DI) and transaction manager to carry out integrated testing; a problem which occurs regularly in the integrated testing of Spring and Hibernate, is solved by the use of the around advice, one of the vital technologies in aspect - oriented programming (AOP). The test methods and experiences which are summed up in this article can significantly improve efficiency in test preparation, deployment and implementation of management information system under lightweight framework, also contribute to TDD team organization and cooperation.
关 键 词:软件测试 SPRING 测试驱动开发 注释 依赖注入 面向切面编程
分 类 号:TP311.56[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.117

