JUnit-3.8.x integration. This API is compatible with JDK-1.4.
Since annotations are not supported under JDK-1.4 there are alternatives
1) Combine-configuration can be tweaked by low-level APIs that allow the
test-developer to override
2) Callback-injection is performed for all interface fields, i.e. not
just the fields that are annotated with
When this API is used under JDK-1.5+ the
automagically enabled, thus making alternative 1) less attractive.
interface-fields are of course callback-injected but all other
interface-fields will be injected as well. (Which only means that
uninitialized interface-fields will be non-null when the constructor runs, so
it will only be a minor inconvenience ...)
Nevertheless test-developers are encouraged to upgrade to JUnit-4.x ASAP
and switch to the integration-API provided by
because of the advantages it offers while still allowing existing tests
to use the JUnit-3.8.x API.