首页 | 官方网站   微博 | 高级检索  
     

基于AOP的面向对象程序的单元测试
引用本文:张 艳,赵建军,冯 斌.基于AOP的面向对象程序的单元测试[J].计算机工程,2007,33(22):76-79.
作者姓名:张 艳  赵建军  冯 斌
作者单位:上海交通大学软件学院 上海200240
摘    要:单元测试被视为横切关注点,在软件测试过程中很重要。而面向方面编程(AOP)的主要目标就是分离横切关注点,因此,单元测试非常适合用AOP来解决。该文提出了在对面向对象程序进行单元测试时遇到的问题,并用AOP方法加以解决,同时比较了传统方法和AOP方法进行单元测试的优缺点。

关 键 词:面向方面编程  单元测试  AspectJ
文章编号:1000-3428(2007)22-0076-04
修稿时间:2006-11-29

Object-oriented Unit Test Based on Aspect-oriented Programming
ZHANG Yan,ZHAO Jian-jun,FENG Bin.Object-oriented Unit Test Based on Aspect-oriented Programming[J].Computer Engineering,2007,33(22):76-79.
Authors:ZHANG Yan  ZHAO Jian-jun  FENG Bin
Affiliation:School of Software, Shanghai Jiaotong University, Shanghai 200240
Abstract:Unit test is regarded as crosscutting concern,which is a very important testing behavior in the process of software test.However,the main objective of aspect-oriented programming(AOP) is to separate crosscutting concerns,so AOP is fit for unit test.This paper brings forward several problems existing in object-oriented unit testing and shows how the AOP can be used to solve them.Virtues and shortcomings of using traditional method and AOP methods to support object-oriented unit test are compared.
Keywords:aspect-oriented programming(AOP)  unit test  AspectJ
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机工程》浏览原始摘要信息
点击此处可从《计算机工程》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号