Comments on: Mocking context lookups http://amazing-development.com/archives/2006/07/24/mocking-context-lookups/ ruby, java and the rest Fri, 13 Jul 2012 07:03:43 +0000 hourly 1 http://wordpress.org/?v=3.4.1 By: Frank Spychalski http://amazing-development.com/archives/2006/07/24/mocking-context-lookups/comment-page-1/#comment-4007 Frank Spychalski Tue, 25 Jul 2006 10:56:28 +0000 http://amazing-development.com/archives/2006/07/24/mocking-context-lookups/#comment-4007 The code looks exactly like the example and I didn't want to change the code just for testing. The code looks exactly like the example and I didn’t want to change the code just for testing.

]]>
By: Daniel Cloutier http://amazing-development.com/archives/2006/07/24/mocking-context-lookups/comment-page-1/#comment-4001 Daniel Cloutier Tue, 25 Jul 2006 08:13:55 +0000 http://amazing-development.com/archives/2006/07/24/mocking-context-lookups/#comment-4001 Maybe the most elegant solution would be to inject a InitialContextFactory via Setter-Injection. But if you don't use IOC, the Factory-Pattern is a good choice i think ;-) Maybe the most elegant solution would be to inject a InitialContextFactory via Setter-Injection. But if you don’t use IOC, the Factory-Pattern is a good choice i think ;-)

]]>