The code is all my own work so that shouldn't be a problem.
I think the main things I'm doing are,
using JDom for working with XML tree's (it's just a lot easier that
way)
Doing assertions on whole XML tree's. At the moment this disregards
the order in which the node appear e.g.
<example>
<one/>
<two/>
</example>
can be asserted as being similar to
<example>
<two/>
<one/>
</example>.
I do have a concept of asserting two documents as identical in which
case node order would be important. But I've not needed that yet so it's
there's not code behind it. You can also ignore white space when comparing,
but this is a bit or a crewd switch as you might want to say it's
significant for some parts of a document but not for others.
I kinda had the idea of returning a list of differences which you
could then decide if they where significant or not, but I've not really gone
anywhere with that one yet.
The final thing is allowing the use of composition rather than just
inheritance. So I have an XMLUnit class which you can use to perform all the
assertions and then there's a XMLTestCase which is there as a convinient way
to do purely XML unit tests. This is important if you want to use XMLUnit
with something like Cactus because you can subclass the cactus stuff and
still use the XMLUnit code to assert things about XML documents.
> -----Original Message-----
> From: Morgan Delagrange [mailto:[EMAIL PROTECTED]]
> Sent: 18 April 2001 20:45
> To: [EMAIL PROTECTED]
> Subject: Re: XMLUnit
>
>
> Hey Jeff,
>
> XMLUnit isn't really cranking yet. I just added a few
> classes as material for incubation, Rod added some
> more, and that's pretty much it. If you've got some
> good ideas, we're happy to hear them.
>
> I'll try to take a look at your code, or, if you like,
> you can propose some additions and patches to the
> Jakarta project. If your stuff looks good, we'll talk
> about adding it and getting you write access.
>
> Has anyone else committed code to your Sourceforge
> project besides you? If so, you may not be able to
> contribute that code.
>
> - Morgan
>
> --- Jeff Martin <[EMAIL PROTECTED]> wrote:
> > Hi, I've just subscribed to this list so I'm not
> > really up on what's going
> > on at the moment but I just thought I'd mention
> > this.
> >
> > I've noticed the XMLUnit project and it struck me
> > that it's very similar to
> > a project which I started not long ago called
> > XMLUnit ;o) Looks like there
> > doing pretty much the same thing but from different
> > ends I've been doing
> > asserts against whole XML documents rather than each
> > node.
> >
> > Thought it would make sense to try and pool ideas.
> > My code's in sourceforge
> > at the moment
> > http://sourceforge.net/projects/xmlunit/ Best place
> > to look
> > cvs as there's been a couple of fixes since the
> > first release.
> >
> >
> :pserver:[EMAIL PROTECTED]:/cvsroot/xmlunit
> >
> > module name is cvs
>
>
> =====
> Morgan Delagrange
> Britannica.com
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>