On Sun, Oct 19, 2008 at 9:05 PM, Egon Willighagen <[EMAIL PROTECTED]> wrote: > Anyway, solution: make MoleculeTest extend AtomContainerTest extend > ChemObjectTest. Now, this adds tons of new unit tests... setID will > get tested many, many times, but for many different classes... while > inherited, I do not feel this to be evil, as on of those different > classes may actually be overwriting the method from ChemObject...
OK, this idea is not as simple as I thought... as ChemObjectTest actually instantiates an IChemObject... I can easily have it use the correct IChemObjectBuilder, but having testSetID() actually test DebugMolecule.setID() is a bit more tricky... Going to continue this after an episode of Wallander and some sleep... Egon -- ---- http://chem-bla-ics.blogspot.com/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Cdk-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cdk-user

