struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Kazakevich" <Ilya.Kazakev...@JetBrains.com>
Subject RE: S2 TEst Best Practices
Date Fri, 20 May 2011 13:40:06 GMT
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:davelnewton@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message