you can have test classes and the source code classes in same package but in different folders. Thats cool, look at the example
C:\myApps/mycode/mainsource/com/tamaash/tds/dblayer/someclass.java
package name - com.tamaash.tds.dblayer for someclass.java
C:\myApps/mycode/test/com/tamaash/tds/dblayer/testsomeclass.java
package name - com.tamaash.tds.dblayer for testsomeclass.java
There will be two entries in the classpath.
C:\myApps/mycode/mainsource [and] C:\myApps/mycode/test
No comments:
Post a Comment