That is action logic, not view itself.
//Action (could be tested): void execute() { if (someCondition) {showSomething = true;} } //jspx: <c:if="${action.showSomething}">${action.something}</c:if> Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -----Original Message----- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Friday, May 20, 2011 5:29 PM To: Struts Users Mailing List Subject: RE: S2 TEst Best Practices On May 20, 2011 9:26 AM, "Ilya Kazakevich" wrote: > There should not be logic in view. If there is no logic -- there is nothing > to test:) Sure there is, and I'm not even including JavaScript-based functionality. Are the right things displayed? Does the UI reflect proper state? Is the flow correct? Etc. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org