%general-entities; artifacts download time)"> ]> 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. &lfs83_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 patch: JUnit Dependencies Required and User Notes: Installation of JUnit First remove a test, which fails with Java 10. sed -e '/MethodsSorted/i @Ignore' \ -i src/test/java/org/junit/runners/model/TestClassTest.java Replace deprecated SecurityManager code: patch -Np1 -i ../junit4-r&junit-version;-simplify_NoExitSecurityManager-1.patch Install Junit by running the following commands: mvn -DjdkVersion=1.6 install The tests are run as part of the command above. If you wish to generate the documentation, issue: mvn site Install the files in the final location as the root user: install -v -m755 -d /usr/share/java/junit-&junit-version; && cp -v target/junit-&junit-version;.jar /usr/share/java/junit-&junit-version; && cp -v lib/hamcrest-core-1.3.jar /usr/share/java/junit-&junit-version; if the documentation was built, install it as the root user: install -v -m755 -d /usr/share/doc/junit-&junit-version; && cp -v -R target/site/* /usr/share/doc/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-&junit-version;.jar contains java classes to support the xUnit framework testing architecture. junit-&junit-version;.jar hamcrest-core-1.3.jar contains java classes to support matchers used in xUnit tests. hamcrest-core-1.3.jar