source: general/prog/junit.xml@ 24fd742

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 24fd742 was 24fd742, checked in by Pierre Labastie <pieere@…>, 6 years ago

Small typo and layout fixes

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

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