From: <lau...@ma...> - 2002-05-08 18:04:19
|
Hi, I'm in the process of writing some tests with Cactus and MO. Iwant to simulate some Session Beans so I've written mock objects for them. Some of our session beans have a create() method to simulate the corresponding home interface method from the session bean interface. When I implement my mock object, should the create() method actually create a real object and return it (so, I would have to create another mock to implement the interface I'm trying to create)? Or should I set up the object beforehand and have the create() method make sure it is called and then return the data I have previously set up? Hope it's not too confusinng an explanation. L -- Laurent Duperval <mailto:lau...@ma...> Windows 3.1: The 8MB patch. |