On Mon, 2 Apr 2001, Geir Magnusson Jr. wrote:

> "Craig R. McClanahan" wrote:
> > >
> > One potential problem with this location (assuming the classes you are
> > testing are in org.apache.velocity) is that your tests will not have
> > access to package-private methods or variables.  If you put the tests in
> > the same directory (/src/java/org/apache/velocity) or a parallel directory
> > with the same package structure (/src/test/org/apache/velocity) you can
> > avoid this difficulty.
> > 
> 
> That's true.  I was thinking about the 'motivational' aspect of the
> discussion when I wrote that, not the package issue.  This is a good
> point, and is a nice trick, the parallel package trees.
> 
> However, 
> 
> /src/java/org...
> /src/test/org...
> 
> is a bit odd, not symmetric, in that the test tree is also java. (I like
> symmetry...)
> 
>
> I don't have a solution - I am a lousy namer.  I will try anyway...
> 
> /src/java/src/org..
> /src/java/test/org..
> 
> /src/java/???/org...
> /src/java/test/org...
> 
> ( I suppose I am going to hear "... we chose 'share' for ???..."  :)
> 

Well, that was my choice for beanutils :-), but it will need to adapt to
whatever we conclude for the naming discussion.

> geir
> 

Craig

Reply via email to