nu.xom.tests

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xom » nu.xom.tests 
nu.xom.tests

nu.xom.tests contains the JUnit based test suite for XOM. JUnit 3.7 or later is required. (Earlier versions don't have the assertTrue method these tests depend on.)

The XOMTests class runs all the tests, except those that take an exceptionally long time to run (MegaTest). Some of the tests, especially the builder tests, depend on the underlying parser, and are known to fail if the parser is buggy. Xerces 2.6.1 is the only parser which is currently known to be able to run all the tests. Earlier versions of Xerces 2.x cannot successfully run all the tests. The IBM JVM 1.4.1 bundles an earlier version of Xerces which overrides the one bundled with XOM. For this reason, a few tests will fail when using that VM. These tests should pass when using the Sun VMs.

Similarly some of the XSLT tests depend on the underlying TrAX engine. Xalan 2.7 and Saxon 6.5.4 both do a pretty good job, but neither can pass all thne tests included with XOM. testOASISMicrosoftConformanceSuite is the most likely test to fail.

A few tests rely on access to external network resources, and may fail sproadically if the remote server is down or unreachable. However, in general, they pass.

The only other test in this class which is known to fail is testBuildFromFileThatContainsPlane1CharacterInName. This test fails on Mac OS X due to bugs in that platform's VM. However, it passes on other platforms.

There are numerous public classes and methods in this package because JUnit requires all test cases to be public. However, the only published class is XOMTestCase which provides methods for asserting the equality of documents, elements, processing instructions, and other node types. This may be useful for your own tests. The remainder of this package should be treated as unstable and your code should not depend on it.

@since 1.0
Java Source File NameTypeComment
AttributesTest.javaClass

This class provides unit tests for the Attributes class.

AttributeTest.javaClass

Basic tests for the Attribute class.

AttributeTypeTest.javaClass

Tests for the Attribute.Type inner class.

BaseURITest.javaClass

Tests the getting and setting of base URI information on nodes.

BuilderTest.javaClass

Tests building documents from streams, strings, files, and other input sources.

CanonicalizationExceptionTest.javaClass

Unit tests for the CanonicalizationException class.

CanonicalizerTest.javaClass

Tests canonicalization.

CDATASectionTest.javaClass

Test that CDATA sections are read and where possible preserved upon serialization.

CommentTest.javaClass

Various basic unit tests for the Comment class.

DocTypeTest.javaClass

Various tests for the DocType class.

DocumentTest.javaClass

Various basic tests for the Document class.

DOMConverterTest.javaClass

Basic tests for conversion from DOM trees to XOM trees and back again.

EBCDICTest.javaClass

Tests support for the typical U.S.

ElementTest.javaClass

Tests for the Element class.

EncodingTest.javaClass

Check serialization of almost all of Unicode in a variety of encodings.

FastTests.javaClass

Collect the faster of XOM's test cases into a single class. This is a faster first check on sanity.

IDTest.javaClass

Tests for xml:id attributes.

InfoTest.javaClass

Test the main() method for the JAR file.

LeafNodeTest.javaClass
MegaTest.javaClass

Test that XOM can handle really big files.

NamespaceNodeTest.javaClass
NamespacesTest.javaClass

Tests that namespace well-formedness is maintained.

NodeFactoryTest.javaClass

Tests that subclasses of NodeFactory can filter on building in various ways.

NodesTest.javaClass

Various basic tests for the Nodes class.

ParentNodeTest.javaClass

Tests adding, removing, and counting children from parent nodes.

ParsingExceptionTest.javaClass

Unit tests for the ParsingException class.

ProcessingInstructionTest.javaClass

Unit tests for the ProcessingInstruction class.

RoundTripTest.javaClass

This mostly verifies that white space is properly escaped on output.

SAXConverterTest.javaClass

Basic tests for conversion from XOM trees to SAX ContentHandlers.

SerializerTest.javaClass

Tests for Serializer functionality.

SubclassTest.javaClass

Tests for subclasses of XOM classes.

TextTest.javaClass

Basic tests for the Text class.

ValidityExceptionTest.javaClass

Unit tests for the ValidityException class.

VerifierTest.javaClass

Tests to make sure name and character rules are enforced. The rules are tested by comparison with the rules in the org.apache.xerces.util.XMLChar class. This is an undocumented class so this is potentially dangerous in the long run.

XIncludeExceptionTest.javaClass

Unit tests for the XIncludeException class.

XIncludeTest.javaClass

Unit tests for the XInclude and XPointer engines.

XMLExceptionTest.javaClass

This class provides unit tests for the XMLException class.

XMLWriter.javaClass

The original version of this class was written and placed in the public domain by David Megginson.

XOMTestCase.javaClass

Provides utility methods to compare nodes for deep equality in an infoset sense.

XOMTestCaseTest.javaClass

Unit tests for XOMTestCase.

XOMTests.javaClass

Collect most of XOM's test cases into a single class, excepting those tests that are insanely expensive or that fail due to Java bugs.

XPathExceptionTest.javaClass

Unit tests for the XPathException class.

XPathTest.javaClass
XSLExceptionTest.javaClass

Unit tests for the XSLException class.

XSLTransformTest.javaClass

Unit tests for the XSLT engine.

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.