From: John A. T. <ja...@ja...> - 2011-08-08 18:48:33
|
On Mon, Aug 8, 2011 at 2:06 PM, brett lentz <bre...@gm...> wrote: > The "java way" would be to have our code under > net/sourceforge/rails/{game, test, foo} > > (See also: > http://www.oracle.com/technetwork/java/codeconventions-135099.html ) > > If we're going to add new sub-dirs, we may want to consider moving to > the "standard" Java naming conventions. > I don't think that is actually relevant to the choice of directories. Most open source Java software I am aware of separates out tests from the source above the package structure, so src/org/example/Foo.java and tests/org/example/FooTest.java (or different names for src/tests, such as maven). This also has the benefit of tests being able to see package-protected members without opening them up. -- John A. Tamplin |