I think the HTML validator is not too well suited for unit tests in
combination with WicketTester: their scope is different. That said,
you can let WicketTester write the rendered HTML to files, and
validate those files in a separate test, using the HTML validator
stand-alone (not as a markup filter).

Martijn

On Wed, Aug 5, 2009 at 10:38 AM, Andrea Aime<[email protected]> wrote:
> Andrea Aime ha scritto:
>>
>> Hi,
>> I've been using the wicketstuff XHTML validator to
>> clean up all our app pages from validty issues.
>> Great stuff, easy to use, good reporting.
>>
>> Now, I would feel more comfortable to have the XHTML
>> validation embedded in unit tests as well, so that
>> if a validation error pops in the tests will simply start
>> to fail.
>>
>> However, it seems the filters are not executed in
>> wicket tester. I looked a bit into the sources and
>> it seems to be possible to rewrite the main class
>> to turn it into a validation utility, but I'm not
>> very comfortable doing that given it's Apache
>> license and our source code base is GPL instead
>> (would like to avoid mixing the Apache license
>>  in the sources, that is).
>
> Hmm... was wrong here, the validator is GPL'd.
> Still, would be nice to avoid code duplication,
> so still looking for nicer solutions
>
> Cheers
> Andrea
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to