Re: DOMTestCase, JUnitRunner, AvalonRunner

Philippe Le Hegaret wrote:
> if everything failed,
> try to bootstrap it based on the content of the properties
> "org.w3c.dom.DOMImplementation" and "org.w3c.dom.Document" (option 3). This
> requires to embed a full SAX2 parser in the distribution to build the tree
> ourself. "org.w3c.dom.Document" will be used to bootstrap a DOM Level 1 only
> implementation. It might fail if the implementation does not support
> newInstance() on the class implementing the Document interface and, in that
> case, you will be really force to change the DOM Test Suite in order to run it.

One other drawback of option 3 is Entity nodes. Since you cannot create them,
your entity ref nodes will always be empty... There is no real way to solve this
problem unfortunately. The better thing is to always use the implementation
bootstrapping as much as possible and, if not available, try to test everything
except entities.

Philippe

Received on Monday, 26 November 2001 11:44:04 UTC