首页> 中文期刊>计算机技术与发展 >一种基于AOP的构件合约化测试方法与实现

一种基于AOP的构件合约化测试方法与实现

     

摘要

Contract test of the software-component is used to improve software quality and software reliability. However, it is easy to cause crossover chaos between contract code and business logic code in the process of using, which has affected the encapsulation and reusability of code. According to the deficiency, a method of the contract test of software component based on AOP (Aspect Oriented Programming) was proposed. In this method, contract code and function code was realized by cross-cutting concerns and vertical-cutting concerns respectively to achieve the code separation. Finally, the validity of this method is verified though the building of component test platform. The method proposed in this paper can effectively resolve entanglement problems between the contract code and the function code and improve the maintainability of code, as well as provide some theoretical support to the realization of software component of high concentration.%构件合约化测试方法可用于改善软件质量、提高软件可靠性,但在其使用过程中,容易造成合约代码和业务逻辑代码的交叉混乱,影响代码的封装性和复用性.针对该不足,文中提出一种基于AOP的构件合约化测试方法,分别运用横切关注点和纵切关注点实现合约代码和功能代码,达到代码分离的目的.最后通过架构构件测试平台验证该方法的有效性.实践结果表明,该方法能有效地解决代码之间的混乱问题,提高代码的可维护性,对实现高内聚度的软件构件提供一定的理论支持.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号