Is there any set of Classes (e.g. within an open source project or something similar) that allows the instantiation of classes implementing typical interfaces out of the domino namespace?
During the development of unit tests for my Java program creating Mock Objects for the domino classes (e.g. Document, Item etc.) have turned out to be a real pain.
Can anyone provide useful links or (even better) their own mock classes?
Many thanks in advance - Alex
Subject: Lotus Domino JAVA API MOCK Objects for Unit testing
Not that I’m aware of (the Domino Java classes are just a front for the native C/C++ classes), but you can use your .config to point to any Notes/Domino installation/database, and a minimal (design + a few test documents) database replicating the production environment is trivial to create (it will take you longer to edit the config file). The only bugaboo is if you are accessing the environment via CORBA/DIIOP, since you need a Domino server to test against in that case.