摘要
测试对于保证软件开发质量有着非常重要的作用,单元测试更是必不可少。JUnit是一个非常强大的单元测试包,可以对类及其方法测试,还可以将不同的TestCase整合成TestSuit,使测试任务自动化。本文对JUnit的应用进行了分析研究并以一个例子来阐述开发类测试驱动的过程。
Testing is playing a very important role in the process of software quality control. Unit testing is even more important. JUnit is a very powerful unit testing tool, which can test class and the methods of class. It also can organize the different TestCases into the TestSuit, which can make the testing task be run automatically. This article analyses the application of Junit and describes the development process of the testing driver by an example.
出处
《电脑编程技巧与维护》
2009年第4期9-13,共5页
Computer Programming Skills & Maintenance