Paul Spencer <[EMAIL PROTECTED]> writes:

> Arnaud,
>
>>
>
> I am not using a Suite class.  Can you explain how to implement a
> Suite class?

TestSuite is a class of junit 3.8 that implements composite pattern
for tests. Once again, I am not sure this is suitable for your use
case but here is what I would do:
 1. Create TestCase subclasses as needed in the API module. These test
 classes are parameterized by an implementation type instance used
 as recepient for testing
 2. create an abstract TestSuite subclass that parameterizes the  test
 cases. You may need to override addTest so that each test runs on the
 right instance
 3. extends this testsuite once for each implementation that needs to
 be tested with the same set of tests overriding the OUT instanciation code.

Your API test suite may provide access to several implementation
classes if needed. 

This is sketchy but I did not have time to provide details. If you can
wait, I will try to do a POC  next week.

regards,
-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to