We have several velocity templates developed by many developers in last few months. We have used application.properties to get all the messages, labels, text etc, however there might be few sting literals still existing in those templates.
I was wondering if there was any way of having an automated test to find string literals in velocity templates (Consider it as JSP if velocity confuses). Is there any?
Are those HTML pages valid XML? If yes, could you just run the files through a SAX handler that chokes if characters() gets called with a non-whitespace string. You could also try to use HtmlUnit, JTidy, or something like that to parse the HTML into a DOM tree and do assertions against that.