7
Copyright 2002, 2004, 2005 Elliotte Rusty Harold
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.
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.
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
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/
29
<body bgcolor="white">
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.)
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
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.
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.
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.
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.