Verify XHTML is valid in a JUnit test?

Posted by user258526 on Stack Overflow See other posts from Stack Overflow or by user258526
Published on 2010-03-16T05:08:31Z Indexed on 2010/03/16 5:16 UTC
Read the original article Hit count: 274

Filed under:
|

I have a Spring controller that returns XHTML, what's the easiest way to setup a JUnit test that verifies that the XHTML is valid? I'd also like to verify certain elements are present.

© Stack Overflow or respective owner

Related posts about XHTML

Related posts about junit