I have two packages in my project: odp.proj
and odp.proj.test
. There are certain methods that I want to be visible only to the classes in these two
This is no special relation between odp.proj
and odp.proj.test
- they just happen to be named as apparently related.
If the odp.proj.test package is simply providing tests then you can use the same package name (odp.proj
). IDEs like Eclipse and Netbeans will create separate folders (src/main/java/odp/proj
and src/test/java/odp/proj
) with the same package name but with JUnit semantics.
Note that these IDEs will generate tests for methods in odp.proj
and create the appropriate folder for the test methods it doesn't exist.