~ubuntu-branches/ubuntu/precise/xom/precise

« back to all changes in this revision

Viewing changes to src/nu/xom/tests/package.html

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2007-11-25 15:50:40 UTC
  • Revision ID: james.westby@ubuntu.com-20071125155040-r75ikcqf1vu0cei7
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<!--
 
4
 
 
5
  @(#)package.html      
 
6
 
 
7
   Copyright 2002, 2004, 2005 Elliotte Rusty Harold
 
8
   
 
9
   This library is free software; you can redistribute it and/or
 
10
   modify it under the terms of version 2.1 of 
 
11
   the GNU Lesser General Public License as published by the 
 
12
   Free Software Foundation.
 
13
   
 
14
   This library is distributed in the hope that it will be useful,
 
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
   Lesser General Public License for more details.
 
18
   
 
19
   You should have received a copy of the GNU Lesser General Public
 
20
   License along with this library; if not, write to the Free Software
 
21
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
22
   
 
23
   You can contact Elliotte Rusty Harold by sending e-mail to
 
24
   elharo@metalab.unc.edu. Please include the word "XOM" in the
 
25
   subject line. The XOM home page is http://www.xom.nu/  
 
26
 
 
27
-->
 
28
</head>
 
29
<body bgcolor="white">
 
30
 
 
31
<p>
 
32
<code>nu.xom.tests</code> contains the <a href="http://www.junit.org/">JUnit</a>
 
33
based test suite for XOM. JUnit 3.7 or later is required.
 
34
(Earlier versions don't have the <code>assertTrue</code> method
 
35
these tests depend on.)
 
36
</p>
 
37
 
 
38
<p>
 
39
The <code>XOMTests</code> class runs all the tests, except those that
 
40
take an exceptionally long time to run (<code>MegaTest</code>).
 
41
Some of the tests, especially the builder tests,
 
42
depend on the underlying parser, and are known to fail 
 
43
if the parser is buggy. Xerces 2.6.1 is the only parser which is currently
 
44
known to be able to run all the tests. Earlier versions of Xerces 2.x
 
45
cannot successfully run all the tests.
 
46
The IBM JVM 1.4.1 bundles an earlier version of Xerces which overrides the one bundled with XOM.
 
47
For this reason, a few tests will fail when using that VM. These tests should pass when using the
 
48
Sun VMs. 
 
49
</p>
 
50
 
 
51
<p>
 
52
Similarly some of the XSLT tests depend on the 
 
53
underlying TrAX engine. Xalan 2.7 and Saxon 6.5.4 both do a pretty good job,
 
54
but neither can pass all thne tests included with XOM. 
 
55
testOASISMicrosoftConformanceSuite
 
56
is the most likely test to fail.
 
57
</p>
 
58
 
 
59
 
 
60
<p>
 
61
A few tests rely on access to external network resources,
 
62
 and may fail sproadically if the remote server is down or unreachable.
 
63
However, in general, they pass. 
 
64
</p>
 
65
 
 
66
<p>
 
67
The only other test in this class which is known to fail is 
 
68
testBuildFromFileThatContainsPlane1CharacterInName. This test fails on Mac OS X due to bugs in that platform's VM. However, it passes on other platforms. 
 
69
</p>
 
70
 
 
71
<p>
 
72
There are numerous public classes and methods in this package because JUnit requires
 
73
all test cases to be public. However, the only <em>published</em> class is
 
74
<code>XOMTestCase</code> which provides methods for asserting the equality
 
75
of documents, elements, processing instructions, and other node types.
 
76
This may be useful for your own tests. The remainder of this package
 
77
should be treated as unstable and your code should not depend on it.
 
78
</p>
 
79
 
 
80
@since 1.0
 
81
 
 
82
</body>
 
83
</html>