source: general/prog/junit.xml@ 1b5d270e

10.0 10.1 11.0 11.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since 1b5d270e was 1b5d270e, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

typo

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11509 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY junit-download-http "https://launchpad.net/debian/+archive/primary/+files/junit4_4.11.orig.tar.gz">
8 <!ENTITY junit-download-ftp " ">
9 <!ENTITY junit-md5sum "b4d163832583dcec8bedb5427c795cc4">
10 <!ENTITY junit-size "1.7 MB">
11 <!ENTITY junit-buildsize "34 MB">
12 <!ENTITY junit-time "0.1 SBU">
13]>
14
15<sect1 id="junit" xreflabel="JUnit-&junit-version;">
16 <?dbhtml filename="junit.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>JUnit-&junit-version;</title>
24
25 <indexterm zone="junit">
26 <primary sortas="a-JUnit">JUnit</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to JUnit</title>
31
32 <para>The <application>JUnit</application> package contains a simple, open
33 source framework to write and run repeatable tests. It is an instance of
34 the xUnit architecture for unit testing frameworks. JUnit features include
35 assertions for testing expected results, test fixtures for sharing common
36 test data, and test runners for running tests.</para>
37
38 &lfs73_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&junit-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&junit-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &junit-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &junit-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &junit-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &junit-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
63 <itemizedlist spacing="compact">
64 <listitem>
65 <para>
66 Required file: <ulink
67 url="http://anduin.linuxfromscratch.org/sources/other/junit-4.11.jar">
68 http://anduin.linuxfromscratch.org/sources/other/junit-4.11.jar</ulink>
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Required file: <ulink
74 url="http://hamcrest.googlecode.com/files/hamcrest-1.3.tgz">
75 http://hamcrest.googlecode.com/files/hamcrest-1.3.tgz </ulink>
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">JUnit Dependencies</bridgehead>
81
82 <bridgehead renderas="sect4">Required</bridgehead>
83 <para role="required">
84 <xref linkend="apache-ant"/> and
85 <xref linkend="unzip"/>
86 </para>
87
88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/junit"/></para>
90
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of JUnit</title>
95
96 <para>To do a full build of JUnit from source, <xref linkend='apache-ant'/>
97 is required. However JUnit is useful in building Apache Ant. Copy the
98 JUnit-&junit-version; jar file to get started. Then come back to build
99 from source, if desired.</para>
100
101 <para>Install the <application>JUnit</application> jar file by running the following
102 commands as the <systemitem class="username">root</systemitem> user:</para>
103
104<screen role="root"><userinput>install -v -m755 -d /usr/share/java &amp;&amp;
105cp -v junit-&junit-version;.jar /usr/share/java</userinput></screen>
106
107 <para>At this point, make sure Apache-Ant is installed and then continue
108 with the source build and instalation. From the directory created when
109 extracting the JUnit sources, place the required hamcrest jar files where
110 needed and build the package:</para>
111
112<screen role="root"><userinput>tar -xf ../hamcrest-1.3.tgz &amp;&amp;
113cp -v hamcrest-1.3/hamcrest-core-1.3{,-sources}.jar lib/ &amp;&amp;
114ant dist</userinput></screen>
115
116 <para>Testing is automatically done as a part of the build step.</para>
117
118 <para>Install the files in the final location as the
119 <systemitem class="username">root</systemitem> user:</para>
120
121<screen role="root"><userinput>install -v -m755 -d /usr/share/{doc,java}/junit-&junit-version; &amp;&amp;
122chown -R root:root . &amp;&amp;
123
124cp -v -R junit*/javadoc/* /usr/share/doc/junit-&junit-version; &amp;&amp;
125cp -v junit*/junit*.jar /usr/share/java/junit-&junit-version; &amp;&amp;
126cp -v hamcrest-1.3/hamcrest-core*.jar /usr/share/java/junit-&junit-version;</userinput></screen>
127
128 <para>Finally, update the <envar>CLASSPATH</envar> variable:</para>
129
130<screen><userinput>export CLASSPATH=$CLASSPATH:/usr/share/java/junit-&junit-version;</userinput></screen>
131 </sect2>
132
133 <sect2 role="content">
134 <title>Contents</title>
135
136 <segmentedlist>
137 <segtitle>Installed Programs</segtitle>
138 <segtitle>Installed Libraies</segtitle>
139 <segtitle>Installed Directories</segtitle>
140
141 <seglistitem>
142 <seg>None</seg>
143 <seg>hamcrest-core and junit jar files</seg>
144 <seg>/usr/share/doc/junit-&junit-version; and
145 /usr/share/java/junit-&junit-version;</seg>
146 </seglistitem>
147 </segmentedlist>
148
149 <variablelist>
150 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
151 <?dbfo list-presentation="list"?>
152 <?dbhtml list-presentation="table"?>
153
154 <varlistentry id="junit.jar">
155 <term><filename class='libraryfile'>junit jar files</filename></term>
156 <listitem>
157 <para>contains java classes to support the xUnit framework testing
158 architecture.</para>
159 <indexterm zone="junit junit.jar">
160 <primary sortas="c-junit.jar">junit-&junit-version;.jar</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 </variablelist>
166
167 </sect2>
168
169</sect1>
Note: See TracBrowser for help on using the repository browser.