The JUnit package contains a simple, open source framework to write and run repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. JUnit features include assertions for testing expected results, test fixtures for sharing common test data, and test runners for running tests.
Download (HTTP): http://downloads.sourceforge.net/junit/junit4.1.zip
Download MD5 sum: e66d3e77c70b3297f2c6a12990fc3120
Download size: 622 KB
Estimated disk space required: 5.2 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/junit
Install JUnit by running the
following commands as the root
user:
install -v -m755 -d /usr/share/{,doc/}junit-4.1 &&
chown -R root:root . &&
cp -v -R junit* org /usr/share/junit-4.1 &&
cp -v -R *.html *doc /usr/share/doc/junit-4.1
Add the junit-4.1.jar and
/usr/share/junit-4.1 directory to
your CLASSPATH environment variable:
export CLASSPATH=$CLASSPATH:\ /usr/share/junit-4.1/junit-4.1.jar:/usr/share/junit-4.1
To run the JUnit regression
self-tests, you'll need to have JDK-1.5.0_11 or Jikes installed and the
CLASSPATH environment variable updated.
Then, as an unprivileged user, issue:
java org.junit.runner.JUnitCore org.junit.tests.AllTests
Last updated on 2007-04-04 21:42:53 +0200