In this section of the Java Unit Testing Tutorial you will write your first unit test and get it to execute successfully.
Tutorial Introduction Previous: Initial Setup
Determine What to Test
Before you can write your first unit test you need some code to test. If you are trying this in your own project, then select a class [...]
Posts made in January, 2009
- Add Comment
- No Comments
- Permalink
In this section of the Java Unit Testing Tutorial you will install JUnit, the unit testing framework you will use for unit testing, configure Eclipse to run your project’s tests, and finally configure your project for the unit test code you will write.
Previous: Tutorial Introduction Next: Writing Your First Unit Test
Install JUnit
Follow these steps to [...]
- Add Comment
- No Comments
- Permalink
This tutorial explains how to set up and write automated unit tests in Java using JUnit 4, a widely used java unit testing framework, Eclipse 3, an open source integrated development environment (IDE), and Java SE 5 or later. This tutorial is intended to be an introduction to unit testing aimed at developers who [...]
- Add Comment
- No Comments
- Permalink