Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

JDOM2 Android Test Analysis

rolfl edited this page · 1 revision

The following is a messy breakdown of all the failing tests on Android:

XML Validation DTD/XMLSchema not available:

[exec] org.jdom2.test.cases.input.TestDOMBuilderTT

 [exec] Error in testXSDDocument:
 [exec] java.lang.AssertionError: Could not parse file '/xsdcomplex/input.xml': http://java.sun.com/xml/jaxp/properties/schemaLanguage

[exec] org.jdom2.test.cases.input.TestSAXBuilderTT

 [exec] Error in testGetErrorHandler:
 [exec] org.jdom2.JDOMException: Unable to create a new XMLReader instance

 [exec] Error in testGetIgnoringBoundaryWhitespace:
 [exec] org.jdom2.JDOMException: Unable to create a new XMLReader instance

 [exec] Error in testGetIgnoringElementContentWhitespace:
 [exec] org.jdom2.JDOMException: Unable to create a new XMLReader instance

 [exec] Error in testSetJDOMFactory:
 [exec] org.jdom2.JDOMException: Unable to create a new XMLReader instance

[exec] org.jdom2.test.cases.input.TestSAXComplexSchemaTT

 [exec] Error in testBuildFileNewSAX:
 [exec] java.lang.AssertionError: Parsing failed. See stack trace.

 [exec] Error in testBuildFileOldWay:
 [exec] java.lang.AssertionError: Parsing failed. See stack trace.

[exec] org.jdom2.test.cases.input.sax.TestXMLReaderSchemaFactoryTT

 [exec] Error in testParseValidateWorks:
 [exec] java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema

 [exec] Error in testSchemaXMLReaderFactory:
 [exec] java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema

[exec] org.jdom2.test.cases.input.sax.TestXMLReaderSingletonsTT

 [exec] Error in testDTDValidatingReader:
 [exec] org.jdom2.JDOMException: Unable to create a new XMLReader instance

 [exec] Error in testXSDValidatingReader:
 [exec] java.lang.AssertionError: 

 [exec] Error in testXSDValidatingReaderFails:
 [exec] java.lang.AssertionError: 

[exec] org.jdom2.test.cases.input.sax.TestXMLReaderXSDFactoryTT

 [exec] Error in testXMLReaderXSDFactoryFileArray:
 [exec] java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema

 [exec] Error in testXMLReaderXSDFactorySourceArray:
 [exec] java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema

 [exec] Error in testXMLReaderXSDFactorySourceNull:
 [exec] java.lang.AssertionError: We expected an exception of type java.lang.NullPointerException but got a java.lang.IllegalArgumentException instead with message http://www.w3.org/2001/XMLSchema

 [exec] Error in testXMLReaderXSDFactoryStringArray:
 [exec] java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema

 [exec] Error in testXMLReaderXSDFactoryURLArray:
 [exec] java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema

Xerces Parser not installed:

[exec] org.jdom2.test.cases.input.TestSAXBuilderTT

 [exec] Error in testSAXBuilderString:
 [exec] java.lang.AssertionError: Could not create parser: Unable to create SAX2 XMLReader.

 [exec] Error in testSAXBuilderStringNew:
 [exec] java.lang.AssertionError: Could not create parser: Unable to create SAX2 XMLReader.

 [exec] Error in testSetFeature:
 [exec] java.lang.AssertionError: Could not create parser: http://javax.xml.XMLConstants/feature/secure-processing feature not recognized for SAX driver org.apache.harmony.xml.ExpatReader

[exec] org.jdom2.test.cases.input.sax.TestXMLReaderSAX2FactoryTT

 [exec] Error in testParseNonValidateWorks:
 [exec] org.jdom2.JDOMException: Unable to create SAX2 XMLReader.

 [exec] Error in testParseValidateWorks:
 [exec] org.jdom2.JDOMException: Unable to create SAX2 XMLReader.

 [exec] Error in testSAX2XMLReaderFactoryBoolean:
 [exec] org.jdom2.JDOMException: Unable to create SAX2 XMLReader.

 [exec] Error in testSAX2XMLReaderFactoryBooleanString:
 [exec] org.jdom2.JDOMException: Unable to create SAX2 XMLReader.

Android SAX does not allow set_expand_entities

[exec] org.jdom2.test.cases.input.TestSAXBuilderTT

 [exec] Error in test_TCM__void_setExpandEntities_boolean:
 [exec] java.lang.AssertionError: got entity text

 [exec] Error in test_TCU__InternalAndExternalEntities:
 [exec] java.lang.AssertionError: didn't get external entity text

[exec] org.jdom2.test.cases.special.TestIssue008ExpandEntityTT

 [exec] Error in testFalse:
 [exec] org.junit.ComparisonFailure: expected:<<doc[>&minus;</doc]>> but was:<<doc[ /]>>

 [exec] Error in testFalseUSASCII:
 [exec] org.junit.ComparisonFailure: expected:<<doc[>&minus;</doc]>> but was:<<doc[ /]>>

 [exec] Error in testFalseUTF8:
 [exec] org.junit.ComparisonFailure: expected:<<doc[>&minus;</doc]>> but was:<<doc[ /]>>

 [exec] Error in testTrue:
 [exec] org.junit.ComparisonFailure: expected:<<doc[>-</doc]>> but was:<<doc[ /]>>

 [exec] Error in testTrueUSASCII:
 [exec] org.junit.ComparisonFailure: expected:<<doc[>&#x2212;</doc]>> but was:<<doc[ /]>>

 [exec] Error in testTrueUTF8:
 [exec] org.junit.ComparisonFailure: expected:<<doc[>-</doc]>> but was:<<doc[ /]>>

 [exec] Error in testValidFalse:
 [exec] java.lang.AssertionError: Unable to parse document, see output.

 [exec] Error in testValidFalseUSASCII:
 [exec] java.lang.AssertionError: Unable to parse document, see output.

 [exec] Error in testValidFalseUTF8:
 [exec] java.lang.AssertionError: Unable to parse document, see output.

 [exec] Error in testValidTrue:
 [exec] java.lang.AssertionError: Unable to parse document, see output.

 [exec] Error in testValidTrueUSASCII:
 [exec] java.lang.AssertionError: Unable to parse document, see output.

 [exec] Error in testValidTrueUTF8:
 [exec] java.lang.AssertionError: Unable to parse document, see output.

DOCType passthrough

[exec] org.jdom2.test.cases.input.TestDOMBuilderTT

 [exec] Error in testDocTypeDocument:
 [exec] java.lang.AssertionError: Could not parse file '/DOMBuilder/doctype.xml'

[exec] org.jdom2.test.cases.located.TestLocatedJDOMFactoryTT

 [exec] Error in testLocation:
 [exec] java.lang.AssertionError: Expected content [DocType: <!DOCTYPE root>] to be on col 16 but its on 15

[exec] org.jdom2.test.cases.output.TestDOMOutputterTT

 [exec] Error in testDocTypePublicSystemIDISS:
 [exec] org.junit.ComparisonFailure: expected:<...BLIC "pubid" "sysid"[ [
 [exec] internal]]>> but was:<...BLIC "pubid" "sysid"[]>>

 [exec] Error in testDocTypeSimpleISS:
 [exec] org.junit.ComparisonFailure: expected:<<!DOCTYPE root[ [
 [exec] <!ENTITY name "value">]]>> but was:<<!DOCTYPE root[]>>

 [exec] Error in testDocTypeSystemIDISS:
 [exec] org.junit.ComparisonFailure: expected:<... root SYSTEM "sysid"[ [
 [exec] internal]]>> but was:<... root SYSTEM "sysid"[]>>

 [exec] Error in testOutputDocTypeInternalSubset:
 [exec] org.junit.ComparisonFailure: outputString Format Raw expected:<<!DOCTYPE root[ [
 [exec] internal]]>> but was:<<!DOCTYPE root[]>>

 [exec] Error in testWithDocType:
 [exec] org.junit.ComparisonFailure: expected:<...8"?>
 [exec] <!DOCTYPE root[ [
 [exec] <!ELEMENT root (#PCDATA)>]]><root />
 [exec] > but was:<...8"?>
 [exec] <!DOCTYPE root[]><root />
 [exec] >

URL Handling different on Android

[exec] org.jdom2.test.cases.input.TestSAXBuilderTT

 [exec] Error in testBuildStringNegativeBadURI:
 [exec] java.lang.AssertionError: We expected an exception of type java.net.MalformedURLException but got a java.io.IOException instead with message Couldn't open  `!@#$%^&*() is not a valid URI 

Jaxen issue with Attribute Ordering

[exec] org.jdom2.test.cases.xpath.TestJaxenCompiledTT

 [exec] Error in testXPathOR:
 [exec] java.lang.AssertionError: Failed result at position 0 for xpath '[XPathExpression: 4 namespaces and 0 variables for query /main/node()[1] | /main/@*]'. expected:<[Attribute: atta="vala"]> but was:<[Comment: <!--main comment-->]>

Android issue with concurrent-modificaion-in-hasNext();

[exec] org.jdom2.test.util.ListTestTT

 [exec] Error in testConcurrentMod:
 [exec] java.lang.AssertionError: 
Something went wrong with that request. Please try again.