Nice project.
We have started testing our web-app recently. Currently we use another junit based project (StrutsTestcase) that allows us to test our struts code as it is running in a web container.
That forces us to extend a class:
public class Test1Action extends MockStrutsTestCase...
The result of the Action is given as a xml doc, so it would be very nice to use xmlunit to assert results.
So, as the subject says, my question is: Is it possible to use xmlunit wihtout actully extending XMLTestcase?
thanks,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Nice project.
We have started testing our web-app recently. Currently we use another junit based project (StrutsTestcase) that allows us to test our struts code as it is running in a web container.
That forces us to extend a class:
public class Test1Action extends MockStrutsTestCase...
The result of the Action is given as a xml doc, so it would be very nice to use xmlunit to assert results.
So, as the subject says, my question is: Is it possible to use xmlunit wihtout actully extending XMLTestcase?
thanks,
You should be able to call
assertTrue(XMLUnit.compare(doc1, doc2).identical())
My first trials worked fine, thanks.