source: archive/junit.xml@ 45ab6c7

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 45ab6c7 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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