Is anyone else seeing this same error? I emailed the lead developer of XMLUnit, and he
said it was due to a difference between JUnit 3.7 and 3.8. However, I've tried it with
both, and it still doesn't work.
To test just change the xmlunit jellyunit suite to actually test what exception is
thrown, and not just test that any exception is throws (as I've done below).
Thanks,
Mike Rettig
----- Original Message -----
From: "Michael Rettig" <[EMAIL PROTECTED]>
> I'm getting this error when trying to compare two xml documents.
>
> java.lang.NoSuchMethodError
> at org.custommonkey.xmlunit.Diff.appendMessage(Unknown Source)
> at org.custommonkey.xmlunit.Diff.toString(Unknown Source)
> at
>org.apache.commons.jelly.tags.xmlunit.AssertDocumentsEqualTag.doTag(AssertDocumentsEqualTag.java:119)
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:134)
> at org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:105)
>
> Here is the test. I updated one of the XmlUnit tags to include support for the new
>assertThrows tags.
>
> <test:case name="differentDocuments">
> <x:parse var="doc1">
> <testDoc1/>
> </x:parse>
> <x:parse var="doc2">
> <testDoc2/>
> </x:parse>
>
> <test:assertThrows expected="junit.framework.AssertionFailedError">
> <xu:assertDocumentsEqual actual="${doc1}" expected="${doc2}"/>
> </test:assertThrows>
> </test:case>
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Meet Singles
http://corp.mail.com/lavalife
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>