struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Sampaleanu <co...@brightspark.com>
Subject RE: [PROPOSAL] Struts Unit Test Guidelines
Date Mon, 19 Mar 2001 20:42:20 GMT
> -----Original Message-----
> From: Michael Hackett [mailto:mhackett@pictorius.com]
> Sent: March 19, 2001 11:46 AM
> To: struts-dev@jakarta.apache.org
> Subject: RE: [PROPOSAL] Struts Unit Test Guidelines
> 
> > From: Craig R. McClanahan <craigmcc@apache.org>
> 
> > I have a mild preference for "TextXxxxx" -- I think of the
> > word test as a
> > "verb", and that is what "test xxxxx" would mean (at least in
> > English :-).
> 
> The word "test" is just as likely to be a noun. Didn't you take any
> "tests" in school? :-) Also, class names are supposed to be nouns,
> although it seems the usual convention for JUnit is to use Test as a
> prefix. (Probably the most correct form would be XxxTester, but the
> convention is established now and will be hard to break.)

Are you sure you don't mean that the usual convention for JUnit is to use
'Test' as a suffix? If you look at the documentation on junit.org, a number
of examples use 'Test' as a suffix on the classname. As well, there are at
least a couple of automatic test finder implementations (those that don't
actually load the class and see if it derives from TestCase) that look for
Test as a suffix...


Mime
View raw message