From: J. X. <sou...@ma...> - 2003-12-16 23:29:31
|
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. |