Package org.callbackparams.junit3

JUnit-3.8.x integration.

See:
          Description

Class Summary
CallbackTestCase Parameterized tests for JUnit-3.8.x can be created by subclassing this class instead of TestCase.
CallbackTestSuite TestSuite implementation that could be useful under JUnit-3.8.x when CallbackTestCase cannot be subclassed, such as when it is desired to subclass another third-party TestCase implementation, e.g.
 

Package org.callbackparams.junit3 Description

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 available ...
1) Combine-configuration can be tweaked by low-level APIs that allow the test-developer to override CallbackRecordsFactory.
2) Callback-injection is performed for all interface fields, i.e. not just the fields that are annotated with @ParameterizedCallback.

When this API is used under JDK-1.5+ the combine-annotations are automagically enabled, thus making alternative 1) less attractive. @ParameterizedCallback-annotated 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 CallbackParamsRunner, because of the advantages it offers while still allowing existing tests to use the JUnit-3.8.x API.



Copyright © 2010-2013 Henrik Kaipe. All Rights Reserved.