struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Kazakevich" <>
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;}



Ilya Kazakevich,
JetBrains Inc
"Develop with pleasure!"

-----Original Message-----
From: Dave Newton [] 
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
> 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message