You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@apache.org on 2002/07/31 13:22:27 UTC
cvs commit: xml-xerces/java/tests/dom/registry Test.java
lehors 2002/07/31 04:22:27
Modified: java/tests/dom/registry Test.java
Log:
updated to use new regitry class
Revision Changes Path
1.4 +11 -4 xml-xerces/java/tests/dom/registry/Test.java
Index: Test.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/tests/dom/registry/Test.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Test.java 12 Jun 2002 00:27:47 -0000 1.3
+++ Test.java 31 Jul 2002 11:22:27 -0000 1.4
@@ -74,9 +74,16 @@
System.setProperty(DOMImplementationRegistry.PROPERTY,
"org.apache.xerces.dom.DOMImplementationSourceImpl");
+ DOMImplementationRegistry registry = null;
try {
- DOMImplementation i =
- DOMImplementationRegistry.getDOMImplementation("XML");
+ registry = DOMImplementationRegistry.newInstance();
+ Assertion.assert(registry != null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ try {
+ DOMImplementation i = registry.getDOMImplementation("XML");
Assertion.assert(i ==
CoreDOMImplementationImpl.getDOMImplementation());
@@ -87,7 +94,7 @@
try {
DOMImplementation i =
- DOMImplementationRegistry.getDOMImplementation("XML MutationEvents");
+ registry.getDOMImplementation("XML MutationEvents");
Assertion.assert(i ==
DOMImplementationImpl.getDOMImplementation());
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org