glfs/general/prog/junit.xml
Randy McMurchy fce275e955 Modified all the Sourceforge download URLs to use a newly created entity instead of a hard-coded URL
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7591 af4574ff-66df-0310-9fd7-8a98e5e911e0
2008-10-13 14:49:44 +00:00

136 lines
4.7 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY junit-download-http "&sourceforge-repo;/junit/junit&junit-version;.zip">
<!ENTITY junit-download-ftp " ">
<!ENTITY junit-md5sum "6c22e6733f4ba9d755a437375e3d476e">
<!ENTITY junit-size "643 KB">
<!ENTITY junit-buildsize "5.7 MB">
<!ENTITY junit-time "less than 0.1 SBU">
]>
<sect1 id="junit" xreflabel="JUnit-&junit-version;">
<?dbhtml filename="junit.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>JUnit-&junit-version;</title>
<indexterm zone="junit">
<primary sortas="a-JUnit">JUnit</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to JUnit</title>
<para>The <application>JUnit</application> 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.</para>
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&junit-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&junit-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &junit-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &junit-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &junit-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &junit-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">JUnit Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required"><xref linkend="unzip"/></para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/junit"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of JUnit</title>
<para>Install <application>JUnit</application> by running the following
commands as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>install -v -m755 -d /usr/share/{,doc/}junit-&junit-version; &amp;&amp;
chown -R root:root . &amp;&amp;
cp -v -R junit* org /usr/share/junit-&junit-version; &amp;&amp;
cp -v -R *.html *doc /usr/share/doc/junit-&junit-version;</userinput></screen>
<para>Add the <filename
class='libraryfile'>junit-&junit-version;.jar</filename> and <filename
class='directory'>/usr/share/junit-&junit-version;</filename> directory to
your system <envar>CLASSPATH</envar> environment variable:</para>
<screen><userinput>export CLASSPATH=$CLASSPATH:\
/usr/share/junit-&junit-version;/junit-&junit-version;.jar:/usr/share/junit-&junit-version;</userinput></screen>
<para>To run the <application>JUnit</application> regression self-tests,
you'll need to have <xref linkend="jdk"/> or <ulink
url="http://jikes.sourceforge.net/">Jikes</ulink> installed and the
<envar>CLASSPATH</envar> environment variable updated. Then, as an
unprivileged user, issue:</para>
<screen><userinput>java org.junit.runner.JUnitCore org.junit.tests.AllTests</userinput></screen>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>None</seg>
<seg>junit-&junit-version;.jar</seg>
<seg>/usr/share/junit-&junit-version;,
/usr/share/doc/junit-&junit-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="junit.jar">
<term><filename class='libraryfile'>junit-&junit-version;.jar</filename></term>
<listitem>
<para>contains java classes to support the xUnit framework testing
architecture.</para>
<indexterm zone="junit junit.jar">
<primary sortas="c-junit.jar">junit-&junit-version;.jar</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>