From: Nat P. <nat...@b1...> - 2003-12-17 00:14:29
|
Can't you mock the unmarshaller? Cheers, Nat. _______________________ Dr. Nathaniel Pryce B13media Ltd. http://www.b13media.com +44 (0)7712 526 661 ----- Original Message ----- From: "J. Xue" <sou...@ma...> To: "MockObjects Users" <moc...@li...> Sent: Tuesday, December 16, 2003 11:29 PM Subject: Re: [MO-java-users] any pattern for this? > Quoting Steve Freeman <st...@m3...>: > > > I don't understand. Are you trying to run your unit test within castor? > > Why can't you just create an instance? > > ClassUnderTest calls the castor XML Unmarshaller to load ClassToMock. For the > test code to be able to sneak in a canned instance of ClassToMock, the only > way I can think of now is to make ClassUnderTest call a factory instead of > calling castor directly, but it would unnecessarily complicate the design > since most of the code is closely tied to castor anyway. > > --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 |