%general-entities; ]> $LastChangedBy$ $Date$ JUnit-&junit-version; JUnit Introduction to JUnit 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. &lfs82_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &junit-md5sum; Download size: &junit-size; Estimated disk space required: &junit-buildsize; Estimated build time: &junit-time; Additional Downloads Required file: Required file: JUnit Dependencies Required and User Notes: Installation of JUnit The javadoc command coming with OpenJDK 8 has become much stricter than before regarding the conformance of the Javadoc comments in source code to HTML. The Junit documentation does not meet that standard, so the conformance checks have to be disabled. This can be done with the following command: sed -i '\@/docs/@a<arg value="-Xdoclint:none"/>' build.xml With Java 9, the minimum accepted code version is 1.6. However, the build system passes , while the junit code can perfectly be compiled for a Java 8 JVM. Change that by issuing the following command: sed -i 's/1\.5/1.8/' build.xml Now place the required hamcrest jar files where needed and build the package: cp -v ../hamcrest-core-&hamcrest-version;{,-sources}.jar lib/ && ant populate-dist Test the package by issuing ant dist. One test fails for unknown reason. Install the files in the final location as the root user: install -v -m755 -d /usr/share/{doc,java}/junit-&junit-version; && chown -R root:root . && cp -v -R junit*/javadoc/* /usr/share/doc/junit-&junit-version; && cp -v junit*/junit*.jar /usr/share/java/junit-&junit-version; If you have followed the instructions in , there is nothing more to do: the CLASSPATH variable would be automatically updated. Contents Installed Programs Installed Libraries Installed Directories None hamcrest-core and junit jar files /usr/share/doc/junit-&junit-version; and /usr/share/java/junit-&junit-version; Short Descriptions junit jar files contains java classes to support the xUnit framework testing architecture. junit-&junit-version;.jar