tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Where to put a helper class for test?
Date Thu, 12 Sep 2013 18:03:12 GMT
On 12/09/2013 18:31, Nick Williams wrote:
> Mark,
> I'm working on revisions to my patch for BZ 55317 based on your
> feedback. In this feedback you said:
>> 5. I'm not a fan of the org.apache.tomcat.unittest package unless
>> the classes concerned are going to be used by multiple tests across
>> multiple packages.
> I put org.apache.tomcat.unittest.weaving.NeverUsedClass and
> org.apache.tomcat.unittest.weaving.UnweavedClass in this package
> because it seemed like a location that "helper" classes were being
> placed for other tests. However, I see your point about them only
> being used for one class. Should I just put these classes in
> org.apache.catalina.loader, the same package that
> TestWebappClassLoaderWeaving is in?

That is the normal convention. Convention is also that they start
Tester... so they are excluded from the unit test scan.


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

View raw message