JUnit-4.11

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.

This package is known to build and work properly using an LFS-7.6 systemd platform.

Package Information

Additional Downloads

JUnit Dependencies

Required

apache-ant-1.9.4 and UnZip-6.0

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/junit

Installation of JUnit

Place the required hamcrest jar files where needed and build the package:

tar -xf ../hamcrest-1.3.tgz                              &&
cp -v hamcrest-1.3/hamcrest-core-1.3{,-sources}.jar lib/ &&
ant dist

Testing is automatically done as a part of the build step.

Install the files in the final location as the root user:

install -v -m755 -d /usr/share/{doc,java}/junit-4.11 &&
chown -R root:root .                                 &&

cp -v -R junit*/javadoc/*             /usr/share/doc/junit-4.11  &&
cp -v junit*/junit*.jar               /usr/share/java/junit-4.11 &&
cp -v hamcrest-1.3/hamcrest-core*.jar /usr/share/java/junit-4.11

Finally, update the CLASSPATH variable:

export CLASSPATH=$CLASSPATH:/usr/share/java/junit-4.11

Contents

Installed Programs: None
Installed Libraies: hamcrest-core and junit jar files
Installed Directories: /usr/share/doc/junit-4.11 and /usr/share/java/junit-4.11

Short Descriptions

junit jar files

contains java classes to support the xUnit framework testing architecture.

Last updated on 2014-08-24 17:45:37 -0700