Re: Running xmlpull tests?
Tatu Saloranta <[email protected]> Tue, 20 Jul 2004 08:03:36 -0700 (PDT)
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
--- Aleksander Slominski <[email protected]> wrote: > CVS, viewcvs and > http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/ > > should all work now. Thanks! Yesterday I downloaded xpp3 sources, and got the tests. Now "only" 55 tests fail (error/fail). :-) But I did find one actual bug with namehandling in the implementation I wrote... so that was good. :-) Plus obviously there are lots of things tests kind of defined WRT xmlpull api; for example, type of exceptions to be thrown on illegal args. Javadocs often are vague about expected types. One question regarding xmlpull and mapping to StAX: I assume PROCESS_DOC_DECL from xmlpull is roughly equivalent to StAX' SUPPORT_DTD, and then validation enabling features are also similar/identical. Is this correct? Former meaning 'read dtd, internal/external subset, use entities but', and latter that 'validate using dtdf rules'? Now, what I'm not sure about is how validation enabling should work. I mean, most (2 out of 3) xmlpull parsers do not implement (DTD-based) validation, but tests try to enable it. Is expected behaviour just to 'succeed' in setting validation (no exceptions), but return 'false' if feature's value is checked? Right now my StAX implementation throws an exception when trying to enable it (which may or may not be right for stax), but I could make wrapper catch that exception if necessary, if that's not how xmlpull expects things to work. (one difference between stax and xmlpull is that stax has 'isPropertySupported' method that can be used to check existence of a property/feature... too bad it can't tell if value being set is acceptable). -+ Tatu +- > > let me know if you have problems with access to > them. > > thanks, > > alek > > Aleksander Slominski wrote: > > >cowtowncoder wrote: > > > > > > > >>Hi again; I was looking into running xmlpull test > suite on a simple > >>Xpp-on-Stax wrapper I wrote. Although I couldn't > find any instructions > >>(there's only jar file downloadable), it wasn't > too hard to figure out > >>how to run them, being junit based. > >> > >> > >> > >> > >good :) > > > > > > > >>However, now that all test classes (including > proper stax > >>implementation) are found, I'm hitting actual test > failures (or at > >>least non-obvious setup problems, since failure > comes from > >>setup...)... and would need access to test source > code. Are these > >>downloadable as package, or via CVS? > >> > >> > >> > >> > >yes - they are in CVS *but* our admins during disk > reshuffling made > >anoncvs and viewcvs no longer working. temporarily > try to use > >"/l/local/repository/cvspub" instead of > "/l/extreme/cvspub" or download > >latest source distribution that has everything from > >http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/ > >but that is of course down too (Murphy's law ...) > >and of course no maven repository picks it up ... > >http://www.ibiblio.org/maven/xpp3/distributions/ > >if you are lucky it may work to download it from > here: > >http://ftp2.at.freebsd.org/pub/FreeBSD/distfiles/xpp3-1.1.3.4d_b4_src.tgz > > > > > > > >>I can also email 2 classes (parser and parser > factory) implementations > >>soon, just in case someone else would like to work > on them. > >> > >> > >> > >> > > > >please make sure to indicate what is license for > the contribution - we > >want to make sure that code stays open source and > as much as possible > >public domain so it is easy to use for everybody > (Apache v2 license?). > > > >thanks! > > > >alek > > > > > > > > > -- > The best way to predict the future is to invent it - > Alan Kay > > > > ------------------------ Yahoo! Groups Sponsor > --------------------~--> > Yahoo! Domains - Claim yours for only $14.70 > http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/2U_rlB/TM > --------------------------------------------------------------------~-> > > > > Yahoo! Groups Links > > > [email protected] > > > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/2U_rlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/xmlpull-dev/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/