|
From: Vincent M. <vm...@oc...> - 2001-08-21 17:10:05
|
Can I modify the directory structure to be :
src
|_ core
|_ java
|_ com/mockobjects/[...]
|_ tests
|_ com/mockobjects/[...]
|_ examples
|_ com/mockobjects/examples/[...]
The core only contains the core classes (expectation lists, ...) and is
useful for projects like Mock Maker and others that do not need the mock
implementations. The distributable will be "mockobjects-java-core.jar"
|_ standard (or a better name)
|_ java
|_ tests
|_ examples
For the sub directories under the java directory, we have several choices :
choice 1 : use the same package as the classes to mock. For example, the
mock for HttpURLConnection will be in the java.net package. the mock for
HttpServletRequest will be in javax.servlet.http, ... There is little risk
that there will a name collision (as we name our classes MockXXX, but it
still exists)
choice 2 : use the java hierarchy but prefix by our domain name. For
example, MockHttpServletRequest will be in the
com.mockobjects.javax.servlet.http package
choice 3: keep the existing packages, i.e. no rules. MockHttpServletRequest
will be in com.mockobjects.servlet
The "standard " directory will provides mock implementations for the java
platform (java.* and javax.* packages). The distributable will be
"mockobjects-java-standard.jar"
|_ extensions
|_ atg
|_ java
|_ tests
|_ examples
|_ ...
Each extension will be delivered as a separate jar. For example the atg
mocks will be delivered as : "mockobjects-java-atg.jar"
Any comment ?
I'd like to do that ASAP ... so please hurry to comment if you don't agree
... :)
Thanks
-Vincent
|