Junit 简明教程
JUnit Tutorial
JUnit 是 Java 编程语言的单元测试框架。JUnit 在测试驱动开发的开发中非常重要,并且是一系列单元测试框架之一,统称为 xUnit,它起源于 JUnit。
JUnit is a unit testing framework for Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit, that originated with JUnit.
此教程解释了在使用 Java 时如何将 JUnit 用于项目单元测试。完成本教程后,你将在使用 JUnit 测试框架方面获得足够知识,然后可以提升到下一个级别。
This tutorial explains the use of JUnit in your project unit testing, while working with Java. After completing this tutorial you will gain sufficient knowledge in using JUnit testing framework from where you can take yourself to next levels.
Audience
为帮助初学者理解 JUnit 工具的基本功能,我们准备了此教程。
This tutorial has been prepared for beginners to help them understand the basic functionality of JUnit tool.
Prerequisites
我们假设你将使用 JUnit 处理 Java 项目开发的所有级别。因此,最好具备使用任何编程语言进行软件开发的知识,尤以 Java 编程和软件测试流程为然。
We assume you are going to use JUnit to handle all levels of Java projects development. So it will be good if you have the knowledge of software development using any programming language, especially Java programming and software testing process.