[forge-dev] XmlUnit on Scaffold test cases

George Gastaldi gegastaldi at gmail.com
Mon Jun 11 22:09:14 EDT 2012


Hello all,

I noticed that most of our scaffold unit tests are kinda hard to
maintain. specially because they compare XHTML as strings, instead of
the structure as a whole.
This implies that if you place a line break in a generated XHTML for
example, it breaks the whole test as well.
What about if we refactor these tests to use XmlUnit instead ?
(http://xmlunit.sourceforge.net/)
This way we could compare the structure without the ugly plain string
comparison, WDYT ?


Regards,,
George Gastaldi


More information about the forge-dev mailing list