source: archive/junit.xml

trunk
Last change on this file was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 6.1 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://github.com/junit-team/junit&junit-major;/archive/r&junit-version;/junit&junit-major;-r&junit-version;.tar.gz">
8 <!ENTITY junit-download-ftp " ">
9 <!ENTITY junit-md5sum "22578a9b35cbb71d556a2e625c576c81">
10 <!ENTITY junit-size "433 KB">
11 <!ENTITY junit-buildsize "27 MB">
12 <!ENTITY junit-time "0.2 SBU (with documentation, using 4 cores; add maven <quote>artifacts</quote> download time)">
13]>
14
15<sect1 id="junit" xreflabel="JUnit-&junit-version;">
16 <?dbhtml filename="junit.html"?>
17
18
19 <title>JUnit-&junit-version;</title>
20
21 <indexterm zone="junit">
22 <primary sortas="a-JUnit">JUnit</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to JUnit</title>
27
28 <para>
29 The <application>JUnit</application> package contains a simple, open
30 source framework to write and run repeatable tests. It is an instance of
31 the xUnit architecture for unit testing frameworks. JUnit features include
32 assertions for testing expected results, test fixtures for sharing common
33 test data, and test runners for running tests.
34 </para>
35
36 &lfs83_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&junit-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&junit-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &junit-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &junit-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &junit-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &junit-time;</para>
57 </listitem>
58 </itemizedlist>
59 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
60 <itemizedlist spacing="compact">
61 <listitem>
62 <para>
63 Required patch: <ulink
64 url="&patch-root;/junit&junit-major;-r&junit-version;-simplify_NoExitSecurityManager-1.patch"/>
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">JUnit Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required">
73 <xref linkend="maven"/> and
74 <xref linkend="unzip"/>
75 </para>
76
77 <para condition="html" role="usernotes">User Notes:
78 <ulink url="&blfs-wiki;/junit"/></para>
79
80 </sect2>
81
82 <sect2 role="installation">
83 <title>Installation of JUnit</title>
84 <para>
85 First remove a test, which fails with <application>Java 10</application>.
86 </para>
87
88<screen><userinput>sed -e '/MethodsSorted/i @Ignore' \
89 -i src/test/java/org/junit/runners/model/TestClassTest.java</userinput></screen>
90
91 <para>
92 Replace deprecated SecurityManager code:
93 </para>
94
95<screen><userinput>patch -Np1 -i ../junit4-r&junit-version;-simplify_NoExitSecurityManager-1.patch</userinput></screen>
96
97 <para>
98 Install <application>Junit</application> by running the following
99 commands:
100 </para>
101
102<screen><userinput>mvn -DjdkVersion=1.6 install</userinput></screen>
103
104 <para>
105 The tests are run as part of the command above.
106 </para>
107
108 <para>
109 If you wish to generate the documentation, issue:
110 </para>
111
112<screen><userinput>mvn site</userinput></screen>
113
114 <para>
115 Install the files in the final location as the
116 <systemitem class="username">root</systemitem> user:
117 </para>
118
119<screen role="root"><userinput>install -v -m755 -d /usr/share/java/junit-&junit-version; &amp;&amp;
120cp -v target/junit-&junit-version;.jar /usr/share/java/junit-&junit-version; &amp;&amp;
121cp -v lib/hamcrest-core-1.3.jar /usr/share/java/junit-&junit-version;</userinput></screen>
122
123 <para>
124 if the documentation was built, install it as the
125 <systemitem class="username">root</systemitem> user:
126 </para>
127<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/junit-&junit-version; &amp;&amp;
128cp -v -R target/site/* /usr/share/doc/junit-&junit-version;</userinput></screen>
129
130
131 <para>
132 If you have followed the instructions in <xref linkend="ojdk-conf"/>,
133 there is nothing more to do: the <envar>CLASSPATH</envar> variable
134 would be automatically updated.
135 </para>
136
137 </sect2>
138
139 <sect2 role="content">
140 <title>Contents</title>
141
142 <segmentedlist>
143 <segtitle>Installed Programs</segtitle>
144 <segtitle>Installed Libraries</segtitle>
145 <segtitle>Installed Directories</segtitle>
146
147 <seglistitem>
148 <seg>None</seg>
149 <seg>hamcrest-core and junit jar files</seg>
150 <seg>/usr/share/doc/junit-&junit-version; and
151 /usr/share/java/junit-&junit-version;</seg>
152 </seglistitem>
153 </segmentedlist>
154
155 <variablelist>
156 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
157 <?dbfo list-presentation="list"?>
158 <?dbhtml list-presentation="table"?>
159
160 <varlistentry id="junit.jar">
161 <term><filename class='libraryfile'>junit-&junit-version;.jar</filename></term>
162 <listitem>
163 <para>contains java classes to support the xUnit framework testing
164 architecture.</para>
165 <indexterm zone="junit junit.jar">
166 <primary sortas="c-junit.jar">junit-&junit-version;.jar</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="hamcrest-core">
172 <term><filename class='libraryfile'>hamcrest-core-1.3.jar</filename></term>
173 <listitem>
174 <para>contains java classes to support matchers used in xUnit
175 tests.</para>
176 <indexterm zone="junit hamcrest-core">
177 <primary sortas="c-hamcrest-core">hamcrest-core-1.3.jar</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 </variablelist>
183
184 </sect2>
185
186</sect1>
Note: See TracBrowser for help on using the repository browser.