Sax2Unit Tests Result with GNUJAXP

Arnaud Vandyck <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.xml
Organization STE-Formations Informatiques, ULg
Message-ID <[email protected]>
Hi xml'ers,

Here is (I hope) interresting attachments. I did run tests from
Sax2Unit[1] tests. I did it yesterday but without updating the cvs and
got 7 failures. I did update and ran the tests again. Only 6 failures.

BUT!

Are the tests still up-to-date?

Did the make && make tests (but I commented lines that does not
concern Aelfred).

I also attach a patch for one of the test class of Sax2Unit, I forward
this mail to the project admins of xmlconf, I hope there mails are
still active.

The way I ran the tests:

1) download Sax2Unit-0.2
2) modify the XMLReaderTests class because I could not compile
3) make
4) modify the MakeFile to add gnujaxp.jar to the CPATH variable,
   comment everything not related to gnujaxp in the 'tests' target
5) make tests>sax2unit.2003-01-22.tests-results.txt
6) sent a mail ;-)

I'll investigate to do a DOM test. I also investigate to know if the
SAX tests are up-to-date.

[1] http://xmlconf.sourceforge.net/

-- Arnaud Vandyck
<http://vbstefi60.fapse.ulg.ac.be/~arnaud/>
<http://www.ulg.ac.be/cgi-bin/ph/search?id=u184137>

_______________________________________________
Classpathx-xml mailing list
[email protected]
http://mail.gnu.org/mailman/listinfo/classpathx-xml
sax2unit.2003-01-22.tests-results.txt (text/plain, 5.7 KB)
**** **** **** **** **** **** **** **** **** **** **** **** **** **** **** 
SAX2/JAVA JUNIT Testing ... version 0.2
  These SAX2 tests are under the GPL (GNU General Public License).
  Use the SAX harness for the Sourceforge/NIST/OASIS XML test cases
  to get more complete test coverage.

TESTING gnu.xml.aelfred2.SAXDriver
  XMLReader (basics), DeclHandler, LexicalHandler

.........................................
..................................F.......
.F...F.F..........F.F..
Time: 0,498
There were 6 failures:
1) testDH_ie(net.saxproject.sax2unit.DeclTests)junit.framework.ComparisonFailure: entity value expected:<...
...> but was:<...&#10;...>
	at net.saxproject.sax2unit.DeclTests$17.internalEntityDecl(DeclTests.java:451)
	at gnu.xml.aelfred2.XmlParser.setInternalEntity(XmlParser.java:3197)
	at gnu.xml.aelfred2.XmlParser.parseEntityDecl(XmlParser.java:1950)
	at gnu.xml.aelfred2.XmlParser.parseMarkupdecl(XmlParser.java:919)
	at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:826)
	at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:525)
	at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:417)
	at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:170)
	at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:331)
	at net.saxproject.sax2unit.DeclTests.testDH_ie(DeclTests.java:454)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
2) test_pass_ee1(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: endEntity() exception passthrough expected:<null> but was:<java.net.UnknownHostException: z>
	at net.saxproject.sax2unit.LexicalTests.test_pass_ee1(LexicalTests.java:213)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
3) test_pass_ee4(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: endEntity() exception passthrough expected:<null> but was:<java.net.UnknownHostException: z>
	at net.saxproject.sax2unit.LexicalTests.test_pass_ee4(LexicalTests.java:297)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
4) test_pass_ee5(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: endEntity() exception passthrough expected:<null> but was:<java.net.UnknownHostException: greedy.monopoly>
	at net.saxproject.sax2unit.LexicalTests.test_pass_ee5(LexicalTests.java:335)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
5) test_dtd(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: unexpected failure: abc.xyz
	at net.saxproject.sax2unit.LexicalTests.test_dtd(LexicalTests.java:731)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
6) test_entity(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: unexpected failure: z
	at net.saxproject.sax2unit.LexicalTests.test_entity(LexicalTests.java:806)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)

FAILURES!!!
Tests run: 100,  Failures: 6,  Errors: 0

**** **** **** **** **** **** **** **** **** **** **** **** **** **** **** 
SAX2/JAVA JUNIT Testing ... version 0.2
  These SAX2 tests are under the GPL (GNU General Public License).
  Use the SAX harness for the Sourceforge/NIST/OASIS XML test cases
  to get more complete test coverage.

TESTING gnu.xml.aelfred2.XmlReader
  XMLReader (basics), DeclHandler, LexicalHandler

.........................................
..................................F.......
.F...F.F..........F.F..
Time: 0,512
There were 6 failures:
1) testDH_ie(net.saxproject.sax2unit.DeclTests)junit.framework.ComparisonFailure: entity value expected:<...
...> but was:<...&#10;...>
	at net.saxproject.sax2unit.DeclTests$17.internalEntityDecl(DeclTests.java:451)
	at gnu.xml.aelfred2.XmlParser.setInternalEntity(XmlParser.java:3197)
	at gnu.xml.aelfred2.XmlParser.parseEntityDecl(XmlParser.java:1950)
	at gnu.xml.aelfred2.XmlParser.parseMarkupdecl(XmlParser.java:919)
	at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:826)
	at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:525)
	at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:417)
	at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:170)
	at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:331)
	at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:303)
	at net.saxproject.sax2unit.DeclTests.testDH_ie(DeclTests.java:454)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
2) test_pass_ee1(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: endEntity() exception passthrough expected:<null> but was:<java.net.UnknownHostException: z>
	at net.saxproject.sax2unit.LexicalTests.test_pass_ee1(LexicalTests.java:213)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
3) test_pass_ee4(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: endEntity() exception passthrough expected:<null> but was:<java.net.UnknownHostException: z>
	at net.saxproject.sax2unit.LexicalTests.test_pass_ee4(LexicalTests.java:297)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
4) test_pass_ee5(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: endEntity() exception passthrough expected:<null> but was:<java.net.UnknownHostException: greedy.monopoly>
	at net.saxproject.sax2unit.LexicalTests.test_pass_ee5(LexicalTests.java:335)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
5) test_dtd(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: unexpected failure: abc.xyz
	at net.saxproject.sax2unit.LexicalTests.test_dtd(LexicalTests.java:731)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)
6) test_entity(net.saxproject.sax2unit.LexicalTests)junit.framework.AssertionFailedError: unexpected failure: z
	at net.saxproject.sax2unit.LexicalTests.test_entity(LexicalTests.java:806)
	at net.saxproject.sax2unit.SAX2Test.main(SAX2Test.java:73)

FAILURES!!!
Tests run: 100,  Failures: 6,  Errors: 0
XMLReaderTests.2003-01-22.arnaud.diff (text/plain, 747 B)
--- XMLReaderTests.java~	2001-11-13 00:54:32.000000000 +0100
+++ XMLReaderTests.java	2003-01-20 23:15:32.000000000 +0100
@@ -616,11 +616,12 @@
     }
     public void testER_pass_i ()
     {
-	final IOException i = new IOException ("must pass through");
+	final org.xml.sax.SAXException i = new org.xml.sax.SAXException ("must pass through");
+
 	DefaultHandler h = new DefaultHandler () {
 	    public void endDocument () { ended = true; }
-	    public InputSource resolveEntity (String p, String s)
-	    throws IOException { throw i; } };
+            public InputSource resolveEntity (String p, String s) 
+                throws org.xml.sax.SAXException { throw i; } };
 	parser.setContentHandler (h);
 	parser.setEntityResolver (h);
 	try {
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+Lwlq4vzFZu62tMIRAhmbAJ426XZ+SElFq/bJHUpiwS4LOnIEhwCgwEwu
zw3X3ZzgS+ZvBTrT3YBeYPY=
=8NLq
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.