Re: [all] Testing interface implementations

2009-05-30 Thread John Bollinger
Emmanuel Bourg wrote: > In Commons CLI there are 3 parsers implementing the same interface, and soon > another implementation will be added. There is an abstract test case with the > test methods, and a concrete subclass for each parser. The concrete test case > instantiates the parser and d

Re: [all] Testing interface implementations

2009-05-30 Thread Emmanuel Bourg
Phil Steitz a écrit : You have probably thought of this and it may be distasteful, but one way to break things apart would be to break the single abstract test class into an artificial hierarchy. If there is a way to do this with some kind of semantic integrity (e.g., if it can be made to coi

Re: [all] Testing interface implementations

2009-05-30 Thread Phil Steitz
Emmanuel Bourg wrote: In Commons CLI there are 3 parsers implementing the same interface, and soon another implementation will be added. There is an abstract test case with the test methods, and a concrete subclass for each parser. The concrete test case instantiates the parser and disables so

[all] Testing interface implementations

2009-05-30 Thread Emmanuel Bourg
In Commons CLI there are 3 parsers implementing the same interface, and soon another implementation will be added. There is an abstract test case with the test methods, and a concrete subclass for each parser. The concrete test case instantiates the parser and disables some tests by overwriting