source: general/prog/junit.xml@ 0b585c59

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0b585c59 was 784a1a7f, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Moved apache-ant to programming section.
Created sub-section in programming for java.
Added a separate section intorducing java and
doing the binary install. Marked junit, apache-ant
and openjdk as undergoing revision.

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

  • Property mode set to 100644
File size: 4.8 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 "&sourceforge-repo;/junit/junit&junit-version;.zip">
8 <!ENTITY junit-download-ftp " ">
9 <!ENTITY junit-md5sum "0666bd1b9a7296ff2b6ee478c82a516b">
10 <!ENTITY junit-size "1.7 MB">
11 <!ENTITY junit-buildsize "15 MB">
12 <!ENTITY junit-time "less than 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 <warning><para>Under revison do not use for now.</para></warning>
33
34
35 <para>The <application>JUnit</application> package contains a simple, open
36 source framework to write and run repeatable tests. It is an instance of
37 the xUnit architecture for unit testing frameworks. JUnit features include
38 assertions for testing expected results, test fixtures for sharing common
39 test data, and test runners for running tests.</para>
40
41 &lfs72_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>Download (HTTP): <ulink url="&junit-download-http;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download (FTP): <ulink url="&junit-download-ftp;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download MD5 sum: &junit-md5sum;</para>
53 </listitem>
54 <listitem>
55 <para>Download size: &junit-size;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated disk space required: &junit-buildsize;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated build time: &junit-time;</para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">JUnit Dependencies</bridgehead>
66
67 <bridgehead renderas="sect4">Required</bridgehead>
68 <para role="required"><xref linkend="unzip"/></para>
69
70 <para condition="html" role="usernotes">User Notes:
71 <ulink url="&blfs-wiki;/junit"/></para>
72
73 </sect2>
74
75 <sect2 role="installation">
76 <title>Installation of JUnit</title>
77
78 <para>Install <application>JUnit</application> by running the following
79 commands as the <systemitem class="username">root</systemitem> user:</para>
80
81<screen role="root"><userinput>install -v -m755 -d /usr/share/{,doc/}junit-&junit-version; &amp;&amp;
82chown -R root:root . &amp;&amp;
83cp -v -R junit* org /usr/share/junit-&junit-version; &amp;&amp;
84cp -v -R *.html *doc /usr/share/doc/junit-&junit-version;</userinput></screen>
85
86 <para>Add the <filename
87 class='libraryfile'>junit-&junit-version;.jar</filename> and <filename
88 class='directory'>/usr/share/junit-&junit-version;</filename> directory to
89 your system <envar>CLASSPATH</envar> environment variable:</para>
90
91<screen><userinput>export CLASSPATH=$CLASSPATH:\
92 /usr/share/junit-&junit-version;/junit-&junit-version;.jar:/usr/share/junit-&junit-version;</userinput></screen>
93
94 <para>To run the <application>JUnit</application> regression self-tests,
95 you'll need to have <xref linkend="openjdk"/>,<!-- <xref linkend="jdk"/>,--> or
96 <ulink url="http://jikes.sourceforge.net/">Jikes</ulink> installed and the
97 <envar>CLASSPATH</envar> environment variable updated. Then, as an
98 unprivileged user, issue:</para>
99
100<screen><userinput>java org.junit.runner.JUnitCore org.junit.tests.AllTests</userinput></screen>
101
102 </sect2>
103
104 <sect2 role="content">
105 <title>Contents</title>
106
107 <segmentedlist>
108 <segtitle>Installed Programs</segtitle>
109 <segtitle>Installed Library</segtitle>
110 <segtitle>Installed Directories</segtitle>
111
112 <seglistitem>
113 <seg>None</seg>
114 <seg>junit-&junit-version;.jar</seg>
115 <seg>/usr/share/junit-&junit-version;,
116 /usr/share/doc/junit-&junit-version;</seg>
117 </seglistitem>
118 </segmentedlist>
119
120 <variablelist>
121 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
122 <?dbfo list-presentation="list"?>
123 <?dbhtml list-presentation="table"?>
124
125 <varlistentry id="junit.jar">
126 <term><filename class='libraryfile'>junit-&junit-version;.jar</filename></term>
127 <listitem>
128 <para>contains java classes to support the xUnit framework testing
129 architecture.</para>
130 <indexterm zone="junit junit.jar">
131 <primary sortas="c-junit.jar">junit-&junit-version;.jar</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 </variablelist>
137
138 </sect2>
139
140</sect1>
Note: See TracBrowser for help on using the repository browser.