mrglavas commented on code in PR #103:
URL: https://github.com/apache/xerces-j/pull/103#discussion_r3546020473
##########
tests/dom/ids/Test.java:
##########
@@ -79,280 +78,92 @@ public class Test {
// Public methods
//
- /** Performs the actual test. */
- public void test(Document doc) {
+ public void testGetElementById() throws Exception {
+
+ ParserWrapper parser = (ParserWrapper)
+ Class.forName(DEFAULT_PARSER_NAME).newInstance();
+
+ parser.setFeature(NAMESPACES_FEATURE_ID, DEFAULT_NAMESPACES);
+ parser.setFeature(VALIDATION_FEATURE_ID, DEFAULT_VALIDATION);
+ parser.setFeature(SCHEMA_VALIDATION_FEATURE_ID,
DEFAULT_SCHEMA_VALIDATION);
+ parser.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID,
DEFAULT_SCHEMA_FULL_CHECKING);
+
+ if (parser instanceof dom.wrappers.Xerces) {
+ parser.setFeature(DEFERRED_DOM_FEATURE_ID, DEFAULT_DEFERRED_DOM);
+ }
+
+ Document doc;
Review Comment:
Perhaps do this to resolve the build failure:
```suggestion
Document doc = null;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]