摘要
面向方面编程是一种新的程序设计范型,它支持关注点的分离,解决了面向对象方法中代码“纠缠”和“分散”的问题,使模块的内聚性提高,耦合度降低,提高了代码的复用性。但是面向方面编程范型也给面向方面程序的测试带来了挑战,传统的测试技术不能完全适应,为了更好地进行测试,本文通过对AspectJ语言进行分析,给出了八种面向方面程序的错误类型,便于进一步地进行面向方面程序测试的研究。
Aspect-Oriented Programming is a new programming paradigm which supports separating concerns and solves the problem of code tangling and sacttering in Object-Oriented Programming, thus, enhancing the cohesion, lowering the coupling of module and improving the reuse of the code. But the Aspect-Oriented Programming itself has brought great challenge in program-testing since the traditional test technique can't adapt completely with the new one. This paper analyzes the AspectJ language and gives eight error types of the Aspect-Oriented Programming which helps for further research on testing of Aspect-Orientod Programs .
出处
《微计算机信息》
北大核心
2005年第08X期133-136,57,共5页
Control & Automation
关键词
面向方面编程
测试
错误
Aspect-Oriented Program
testing
error