commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Rettig" <mret...@homemail.com>
Subject [Jelly] XmlUnit Tag - NoSuchMethodError
Date Wed, 11 Dec 2002 04:02:38 GMT
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


Mime
View raw message