From: Steve F. <st...@m3...> - 2003-12-16 22:29:19
|
I don't understand. Are you trying to run your unit test within castor? Why can't you just create an instance? S. J. Xue wrote: > The class I'm trying to mock is instantiated by a third part tool (castor xml > unmarshaller in this case) that does not take any factory. My problem with this > is that I don't have chance to set any expectations before the actual calls are > made. How does everybody else handle cases like this with mock objects? > > TIA. > --J.X. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Mockobjects-java-users mailing list > Moc...@li... > https://lists.sourceforge.net/lists/listinfo/mockobjects-java-users > -- "A LISP programmer knows the value of everything but the cost of nothing. A C programmer knows the cost of everything but the value of nothing." (Todd Proebsting) |