I have included the correct jar files (xmlunit0.8.jar and junit3.8.1.jar)n my classpath, yet I keep receiving the following error in my class:
testCompareFiles(XmlFileTests)java.lang.NoSuchMethodError
at org.custommonkey.xmlunit.Diff.appendMessage(Unknown Source)
at org.custommonkey.xmlunit.Diff.toString(Unknown Source)
at org.custommonkey.xmlunit.XMLTestCase.assertXMLEqual(Unknown Source)
at org.custommonkey.xmlunit.XMLTestCase.assertXMLEqual(Unknown Source)
at org.custommonkey.xmlunit.XMLTestCase.assertXMLEqual(Unknown Source)
at XmlFileTests.testCompareFiles(XmlFileTests.java:51)
at XmlFileTests.main(XmlFileTests.java:39)
The code that I am trying to test is from an example method provided at the following link: http://xmlunit.sourceforge.net/XMLUnit.pdf
Which is as follows:
String myControlXML = "<msg><uuid>0x00435A8C</uuid></msg>";
String myTestXML = "<msg><localId>2376</localId></msg>";
assertXMLEqual("Comparing test xml to control xml",
myControlXML, myTestXML);
}
Any thoughts on what could be wrong???
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have included the correct jar files (xmlunit0.8.jar and junit3.8.1.jar)n my classpath, yet I keep receiving the following error in my class:
testCompareFiles(XmlFileTests)java.lang.NoSuchMethodError
at org.custommonkey.xmlunit.Diff.appendMessage(Unknown Source)
at org.custommonkey.xmlunit.Diff.toString(Unknown Source)
at org.custommonkey.xmlunit.XMLTestCase.assertXMLEqual(Unknown Source)
at org.custommonkey.xmlunit.XMLTestCase.assertXMLEqual(Unknown Source)
at org.custommonkey.xmlunit.XMLTestCase.assertXMLEqual(Unknown Source)
at XmlFileTests.testCompareFiles(XmlFileTests.java:51)
at XmlFileTests.main(XmlFileTests.java:39)
The code that I am trying to test is from an example method provided at the following link: http://xmlunit.sourceforge.net/XMLUnit.pdf
Which is as follows:
String myControlXML = "<msg><uuid>0x00435A8C</uuid></msg>";
String myTestXML = "<msg><localId>2376</localId></msg>";
assertXMLEqual("Comparing test xml to control xml",
myControlXML, myTestXML);
}
Any thoughts on what could be wrong???