author & internet detective
posted 5 years ago
Ant would just run the junit test so the Ant part isn't important to the question. There are two main approaches.
Test in browser - selenium is most common. It offers a junit interface but you need a browser installed Test from URL but without browser - JWebUnit is good here Forget about the URL and start at the servlet/struts action/spring controller/etc. - Here you can just use JUnit in container testing