You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Michael Rettig <mr...@homemail.com> on 2002/12/11 05:02:38 UTC

[Jelly] XmlUnit Tag - NoSuchMethodError

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>

Thanks,

Mike

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

One click access to the Top Search Engines
http://www.exactsearchbar.com/mailcom